mirror of
https://github.com/github/codeql.git
synced 2026-04-22 23:35:14 +02:00
15 lines
201 B
Kotlin
15 lines
201 B
Kotlin
class NotNullExpr {
|
|
fun taint() = Uri()
|
|
|
|
fun sink(s: String) { }
|
|
|
|
fun bad() {
|
|
val s0 = taint()
|
|
sink(s0!!.getQueryParameter())
|
|
}
|
|
}
|
|
|
|
class Uri {
|
|
fun getQueryParameter() = "tainted"
|
|
}
|