Skip to content

Commit 14cfe2e

Browse files
committed
improve the join-order of BarrierGuardFunction::isBarrierCall
1 parent 3355a7a commit 14cfe2e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

javascript/ql/lib/semmle/javascript/dataflow/Configuration.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2050,9 +2050,10 @@ private class BarrierGuardFunction extends Function {
20502050
*/
20512051
predicate isBarrierCall(DataFlow::CallNode call, Expr e, boolean outcome, string lbl) {
20522052
exists(DataFlow::Node arg |
2053+
argumentPassing(pragma[only_bind_into](call), pragma[only_bind_into](arg),
2054+
pragma[only_bind_into](this), pragma[only_bind_into](sanitizedParameter)) and
20532055
arg.asExpr() = e and
20542056
arg = call.getArgument(paramIndex) and
2055-
argumentPassing(call, arg, this, sanitizedParameter) and
20562057
outcome = guardOutcome and
20572058
lbl = label
20582059
)

0 commit comments

Comments
 (0)