Skip to content

Commit e448dcb

Browse files
committed
Avoid bad join order
We want to avoid joining on `i` first.
1 parent 9f17045 commit e448dcb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/ql/src/semmle/code/java/security/ExternalProcess.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ abstract class ExecCallable extends Callable {
1818
class ArgumentToExec extends Expr {
1919
ArgumentToExec() {
2020
exists(Call execCall, ExecCallable execCallable, int i |
21-
execCall.getArgument(i) = this and
21+
execCall.getArgument(pragma[only_bind_into](i)) = this and
2222
execCallable = execCall.getCallee() and
2323
i = execCallable.getAnExecutedArgument()
2424
)

0 commit comments

Comments
 (0)