Skip to content

Commit 3fc2f2f

Browse files
authored
Merge pull request #8309 from jketema/taint-join-order
C++: Fix join order in the IR dataflow library
2 parents b39f383 + 2fd950c commit 3fc2f2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cpp/ql/lib/semmle/code/cpp/ir/dataflow/DefaultTaintTracking.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,8 @@ private module Cached {
241241
// For compatibility, send flow from arguments to parameters, even for
242242
// functions with no body.
243243
exists(FunctionCall call, int i |
244-
sink.asExpr() = call.getArgument(i) and
245-
result = resolveCall(call).getParameter(i)
244+
sink.asExpr() = call.getArgument(pragma[only_bind_into](i)) and
245+
result = resolveCall(call).getParameter(pragma[only_bind_into](i))
246246
)
247247
or
248248
// For compatibility, send flow into a `Variable` if there is flow to any

0 commit comments

Comments
 (0)