File tree Expand file tree Collapse file tree
java/ql/test/kotlin/library-tests/dataflow/func Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,5 +10,10 @@ class FunctionReference {
1010 Helper .sink(Processor ().process(this ::fn1, Helper .notaint()))
1111 Helper .sink(Processor ().process(::fn2, Helper .taint()))
1212 Helper .sink(Processor ().process(::fn2, Helper .notaint()))
13+
14+ Helper .sink(Processor ().process(this ::prop))
1315 }
16+
17+ val prop: String
18+ get() = Helper .taint()
1419}
Original file line number Diff line number Diff line change 11| functionReference.kt:8:59:8:65 | taint(...) | functionReference.kt:8:33:8:66 | process(...) |
22| functionReference.kt:9:78:9:84 | taint(...) | functionReference.kt:9:33:9:85 | process(...) |
33| functionReference.kt:11:55:11:61 | taint(...) | functionReference.kt:11:33:11:62 | process(...) |
4+ | functionReference.kt:18:24:18:30 | taint(...) | functionReference.kt:14:33:14:51 | process(...) |
45| lambda.kt:4:64:4:70 | taint(...) | lambda.kt:4:33:4:77 | process(...) |
56| lambda.kt:5:60:5:66 | taint(...) | lambda.kt:5:33:5:67 | process(...) |
67| lambda.kt:6:69:6:75 | taint(...) | lambda.kt:6:33:6:76 | process(...) |
Original file line number Diff line number Diff line change 11class Processor {
2+ fun <R > process (f : () -> R ) : R {
3+ return f()
4+ }
5+
26 fun <T , R > process (f : (T ) -> R , arg : T ) : R {
37 return f(arg)
48 }
You can’t perform that action at this time.
0 commit comments