Skip to content

Commit 6b17890

Browse files
Fixing warning on usage of a deprecated feature.
1 parent eefa659 commit 6b17890

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/ql/src/experimental/Security/CWE-327/Azure/UnsafeUsageOfClientSideEncryptionVersion.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ predicate isUnsafeClientSideAzureStorageEncryptionViaAttributes(Call call, AttrN
3333
.getMember("BlobClient")
3434
.getReturn()
3535
.getMember("upload_blob") and
36-
n.getAUse().asExpr() = a and
36+
n.getAValueReachableFromSource().asExpr() = a and
3737
astmt.getATarget() = a and
3838
a.getAFlowNode() = node and
3939
uploadBlob =
@@ -60,7 +60,7 @@ predicate isUnsafeClientSideAzureStorageEncryptionViaAttributes(Call call, AttrN
6060
.getMember("BlobClient")
6161
.getReturn()
6262
.getMember("encryption_version") and
63-
encryptionVersion.getAUse().asExpr() = a2 and
63+
encryptionVersion.getAValueReachableFromSource().asExpr() = a2 and
6464
astmt2.getATarget() = a2 and
6565
a2.getAFlowNode() = encryptionVersionSet and
6666
encryptionVersionSet.strictlyReaches(ctrlFlowNode)

0 commit comments

Comments
 (0)