Files
codeql/java/ql/test/kotlin/library-tests/dataflow/whenexpr/WhenExpr.kt
2022-05-10 19:51:22 +01:00

15 lines
197 B
Kotlin

class WhenExpr {
fun taint() = Uri()
fun sink(s: String) { }
fun bad() {
val s0 = taint()
sink(s0?.getQueryParameter())
}
}
class Uri {
fun getQueryParameter() = "tainted"
}