Skip to content

Commit e60dc9a

Browse files
committed
Swift: Use the PostUpdateNode.
1 parent 09998a9 commit e60dc9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

swift/ql/lib/codeql/swift/frameworks/Heuristic.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ private class AppendCallStep extends AdditionalTaintStep {
8686
ce.getStaticTarget().(Function).getShortName() = ["append", "insert"] and
8787
arg.getLabel() = ["", "contentsOf"] and
8888
node1.asExpr() = arg.getExpr() and
89-
node2.asExpr() = ce.getQualifier()
89+
node2.(DataFlow::PostUpdateNode).getPreUpdateNode().asExpr() = ce.getQualifier()
9090
)
9191
}
9292
}

0 commit comments

Comments
 (0)