Skip to content

Commit 1fcd22b

Browse files
authored
Merge pull request #10621 from hvitved/ruby/fix-bad-join
Ruby: Fix bad join-order
2 parents 296c0a7 + 2bf0876 commit 1fcd22b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ruby/ql/lib/codeql/ruby/dataflow/internal/DataFlowDispatch.qll

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -848,9 +848,10 @@ private predicate mayBenefitFromCallContext1(
848848
Module tp, boolean exact, string name
849849
) {
850850
exists(ArgumentNode arg |
851-
mayBenefitFromCallContext0(ctx, arg, call, encl, name) and
851+
mayBenefitFromCallContext0(ctx, pragma[only_bind_into](arg), call, encl,
852+
pragma[only_bind_into](name)) and
852853
// `arg` has a relevant instance type
853-
isInstanceLocalMustFlow(arg, pragma[only_bind_out](tp), exact) and
854+
isInstanceLocalMustFlow(arg, tp, exact) and
854855
exists(lookupMethod(tp, pragma[only_bind_into](name)))
855856
)
856857
}

0 commit comments

Comments
 (0)