File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
javascript/ql/test/library-tests/frameworks/data Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,10 @@ class C {
8
8
}
9
9
decoratedParamSink ( @testlib . ParamDecoratorSink x ) { // NOT OK - though slightly weird alert location
10
10
}
11
+ decoratedParamSink2 ( @testlib . ParamDecoratorSink x ) { // OK
12
+ x . push ( source ( ) ) ;
13
+ }
11
14
}
12
15
13
16
new C ( ) . decoratedParamSink ( source ( ) ) ;
17
+ new C ( ) . decoratedParamSink2 ( [ ] ) ;
Original file line number Diff line number Diff line change 1
1
consistencyIssue
2
+ | library-tests/frameworks/data/paramDecorator.ts:11 | did not expect an alert, but found an alert for BasicTaintTracking | OK | |
2
3
taintFlow
3
4
| paramDecorator.ts:6:54:6:54 | x | paramDecorator.ts:7:10:7:10 | x |
4
- | paramDecorator.ts:13:28:13:35 | source() | paramDecorator.ts:9:50:9:50 | x |
5
+ | paramDecorator.ts:12:12:12:19 | source() | paramDecorator.ts:11:51:11:51 | x |
6
+ | paramDecorator.ts:16:28:16:35 | source() | paramDecorator.ts:9:50:9:50 | x |
5
7
| test.js:5:30:5:37 | source() | test.js:5:8:5:38 | testlib ... urce()) |
6
8
| test.js:6:22:6:29 | source() | test.js:6:8:6:30 | preserv ... urce()) |
7
9
| test.js:7:41:7:48 | source() | test.js:7:8:7:49 | require ... urce()) |
@@ -58,6 +60,7 @@ taintFlow
58
60
| test.js:203:32:203:39 | source() | test.js:203:32:203:39 | source() |
59
61
isSink
60
62
| paramDecorator.ts:9:50:9:50 | x | test-sink |
63
+ | paramDecorator.ts:11:51:11:51 | x | test-sink |
61
64
| test.js:54:18:54:25 | source() | test-sink |
62
65
| test.js:55:22:55:29 | source() | test-sink |
63
66
| test.js:57:24:57:31 | source() | test-sink |
You can’t perform that action at this time.
0 commit comments