We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3499e9 commit e09e64eCopy full SHA for e09e64e
swift/ql/lib/codeql/swift/dataflow/internal/TaintTrackingPrivate.qll
@@ -43,7 +43,11 @@ private module Cached {
43
)
44
or
45
// allow flow through string concatenation.
46
- nodeTo.asExpr().(AddExpr).getAnOperand() = nodeFrom.asExpr()
+ exists(AddExpr ae |
47
+ ae.getAnOperand() = nodeFrom.asExpr() and
48
+ ae = nodeTo.asExpr() and
49
+ ae.getType().getName() = "String"
50
+ )
51
52
// allow flow through `URL.init`.
53
exists(CallExpr call, ClassDecl c, AbstractFunctionDecl f |
0 commit comments