mirror of
https://github.com/github/codeql.git
synced 2026-04-30 03:05:15 +02:00
Ruby: Add test for documenting missing flow through destructured parameters
This commit is contained in:
@@ -116,3 +116,13 @@ splat_followed_by_keyword_param(taint(58), taint(59), c: taint(60))
|
||||
x = []
|
||||
x[some_index()] = taint(61)
|
||||
positional(*x)
|
||||
|
||||
def destruct((a,b), (c,(d,e)))
|
||||
sink a # $ MISSING: hasValueFlow=62
|
||||
sink b # $ MISSING: hasValueFlow=63
|
||||
sink c # $ MISSING: hasValueFlow=64
|
||||
sink d
|
||||
sink e # $ MISSING: hasValueFlow=65
|
||||
end
|
||||
|
||||
destruct([taint(62), taint(63)], [taint(64), [0, taint(65)]])
|
||||
|
||||
Reference in New Issue
Block a user