Skip to content

Commit f2689dd

Browse files
committed
Swift: Fix for string interpolation taint flow.
1 parent c7be9b4 commit f2689dd

File tree

5 files changed

+3
-90
lines changed

5 files changed

+3
-90
lines changed

swift/ql/lib/codeql/swift/dataflow/internal/TaintTrackingPrivate.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ private module Cached {
3333
exists(ApplyExpr apply, ExprCfgNode e |
3434
nodeFrom.asExpr() = [apply.getAnArgument().getExpr(), apply.getQualifier()] and
3535
apply.getStaticTarget().getName() = ["appendLiteral(_:)", "appendInterpolation(_:)"] and
36-
e.getExpr() = [apply.getAnArgument().getExpr(), apply.getQualifier()] and
36+
e.getExpr() = apply.getQualifier() and
3737
nodeTo.(PostUpdateNodeImpl).getPreUpdateNode().getCfgNode() = e
3838
)
3939
or

0 commit comments

Comments
 (0)