Skip to content

Commit d572525

Browse files
committed
add failing test for splat parameter flow
1 parent 5a0cce2 commit d572525

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

ruby/ql/test/library-tests/dataflow/params/params_flow.rb

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,10 @@ def posargs(p1, *posargs)
5757
posargs(taint(23), *args)
5858

5959
args = [taint(24), taint(25)]
60-
posargs(*args)
60+
posargs(*args)
61+
62+
args = taint(26)
63+
def splatstuff(*x)
64+
sink x[0] # $ MISSING: hasValueFlow=26
65+
end
66+
splatstuff(*args)

0 commit comments

Comments
 (0)