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 66c0a4a commit 7fc7b96Copy full SHA for 7fc7b96
java/ql/test-kotlin1/library-tests/dataflow/foreach/C2.kt
@@ -27,4 +27,14 @@ class C2 {
27
sink(l1.get(0))
28
sink(l2.get(0))
29
}
30
+
31
+ fun setWrapper(l: Array<String>, v: String) {
32
+ l.set(0, v)
33
+ }
34
+ fun test3() {
35
+ val l = arrayOf("")
36
+ setWrapper(l, taint("a"))
37
+ sink(l[0])
38
+ sink(l.get(0))
39
40
java/ql/test-kotlin1/library-tests/dataflow/foreach/test.expected
@@ -11,3 +11,5 @@
11
| C2.kt:23:24:23:24 | "a" | C2.kt:27:14:27:22 | get(...) |
12
| C2.kt:24:26:24:26 | "a" | C2.kt:26:14:26:18 | ...[...] |
13
| C2.kt:24:26:24:26 | "a" | C2.kt:28:14:28:22 | get(...) |
14
+| C2.kt:36:30:36:30 | "a" | C2.kt:37:14:37:17 | ...[...] |
15
+| C2.kt:36:30:36:30 | "a" | C2.kt:38:14:38:21 | get(...) |
0 commit comments