mirror of
https://github.com/github/codeql.git
synced 2025-12-23 04:06:37 +01:00
17 lines
318 B
Kotlin
17 lines
318 B
Kotlin
import android.text.Editable
|
|
|
|
class TestWidgetKt {
|
|
|
|
fun source() : Editable? { return null }
|
|
fun sink(sink : String) {}
|
|
|
|
fun test() {
|
|
val t = source()
|
|
sink(t.toString()); // $ hasTaintFlow
|
|
|
|
val t2 : Any? = source()
|
|
sink(t2.toString()); // $ MISSING: hasTaintFlow
|
|
}
|
|
}
|
|
|