We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b077fc5 commit b1679dfCopy full SHA for b1679df
swift/ql/src/queries/Security/CWE-1204/StaticInitializationVector.ql
@@ -41,7 +41,8 @@ class EncryptionInitializationSink extends Expr {
41
], fName) and
42
fName.matches("%init(%iv:%") and
43
arg = [0, 1] and
44
- call.getArgument(arg).getExpr() = this
+ call.getStaticTarget().(MethodDecl).getParam(pragma[only_bind_into](arg)).getName() = "iv" and
45
+ call.getArgument(pragma[only_bind_into](arg)).getExpr() = this
46
)
47
}
48
0 commit comments