We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8bbfb82 commit 007d08eCopy full SHA for 007d08e
ruby/ql/test/library-tests/dataflow/global/Flow.expected
@@ -1,4 +1,5 @@
1
testFailures
2
+| captured_variables.rb:227:13:227:31 | # $ hasValueFlow=18 | Missing result:hasValueFlow=18 |
3
edges
4
| blocks.rb:14:12:14:20 | call to source | blocks.rb:8:10:8:14 | yield ... | provenance | |
5
| captured_variables.rb:9:24:9:24 | x | captured_variables.rb:10:10:10:23 | -> { ... } [captured x] | provenance | |
ruby/ql/test/library-tests/dataflow/global/captured_variables.rb
@@ -214,3 +214,17 @@ class CaptureOverwrite
214
215
fn.call()
216
end
217
+
218
+def multi_capture
219
+ x = taint(18)
220
+ y = 123
221
222
+ fn1 = -> {
223
+ y = x
224
+ }
225
226
+ fn1.call()
227
+ sink(y) # $ hasValueFlow=18
228
+end
229
230
+multi_capture
0 commit comments