mirror of
https://github.com/github/codeql.git
synced 2025-12-20 02:44:30 +01:00
15 lines
197 B
Kotlin
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"
|
|
}
|