зеркало из https://github.com/github/codeql.git
Merge pull request #13945 from hvitved/ruby/destruct-param-test
Ruby: Add test for documenting missing flow through destructured parameters
This commit is contained in:
Коммит
e39fb093e9
|
@ -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)]])
|
||||
|
|
Загрузка…
Ссылка в новой задаче