Skip to content

Commit 4133eb1

Browse files
committed
Ruby: Reintroduce old Argument[_] restriction to avoid large Cartesian product
1 parent d196c77 commit 4133eb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ private module Cached {
250250
TPositionalParameterPosition(int pos) {
251251
pos = any(Parameter p).getPosition()
252252
or
253-
exists(Call c | exists(c.getArgument(pos))) // TODO: remove once `Argument[_]` summaries are replaced with `Argument[i..]`
253+
pos in [0 .. 10] // TODO: remove once `Argument[_]` summaries are replaced with `Argument[i..]`
254254
or
255255
FlowSummaryImplSpecific::ParsePositions::isParsedArgumentPosition(_, pos)
256256
} or

0 commit comments

Comments
 (0)