mirror of
https://github.com/github/codeql.git
synced 2025-12-18 01:33:15 +01:00
19 lines
312 B
Kotlin
19 lines
312 B
Kotlin
class C2 {
|
|
fun taint(t: String): String {
|
|
return t
|
|
}
|
|
|
|
fun sink(a: Any?) {}
|
|
fun test() {
|
|
val l = arrayOf(taint("a"), "")
|
|
sink(l)
|
|
sink(l[0])
|
|
for (i in l.indices) {
|
|
sink(l[i])
|
|
}
|
|
for (s in l) {
|
|
sink(s)
|
|
}
|
|
}
|
|
}
|