mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
12 lines
161 B
Kotlin
12 lines
161 B
Kotlin
class StringTemplateTests {
|
|
fun taint() = "tainted"
|
|
|
|
fun sink(s: String) { }
|
|
|
|
fun bad() {
|
|
val s0 = taint()
|
|
val s1 = "test $s0"
|
|
sink(s1)
|
|
}
|
|
}
|