mirror of
https://github.com/github/codeql.git
synced 2026-05-05 21:55:19 +02:00
Ruby: Add data-flow test for spurious flow through a reverse store
This commit is contained in:
@@ -1610,4 +1610,7 @@ def m136(i)
|
||||
a[i][0] = source(136.1)
|
||||
sink(a[0][0]) # $ hasValueFlow=136.1
|
||||
sink(a[0][1])
|
||||
a[1][0] = source(136.2)
|
||||
sink(a[1][0]) # $ hasValueFlow=136.2 $ SPURIOUS hasValueFlow=136.1
|
||||
sink(a[2][0]) # $ hasValueFlow=136.1 $ SPURIOUS hasValueFlow=136.2
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user