File tree Expand file tree Collapse file tree 3 files changed +22
-0
lines changed
javascript/ql/test/library-tests/frameworks/data Expand file tree Collapse file tree 3 files changed +22
-0
lines changed Original file line number Diff line number Diff line change 1
1
consistencyIssue
2
+ | library-tests/frameworks/data/test.js:231 | expected an alert, but found none | NOT OK | |
3
+ | library-tests/frameworks/data/test.js:232 | expected an alert, but found none | NOT OK | |
2
4
taintFlow
3
5
| paramDecorator.ts:6:54:6:54 | x | paramDecorator.ts:7:10:7:10 | x |
4
6
| test.js:5:30:5:37 | source() | test.js:5:8:5:38 | testlib ... urce()) |
@@ -62,6 +64,8 @@ taintFlow
62
64
| test.js:223:45:223:52 | source() | test.js:223:45:223:52 | source() |
63
65
| test.js:225:39:225:46 | source() | test.js:225:39:225:46 | source() |
64
66
| test.js:226:50:226:57 | source() | test.js:226:50:226:57 | source() |
67
+ | test.js:230:59:230:66 | source() | test.js:230:59:230:66 | source() |
68
+ | test.js:233:59:233:66 | source() | test.js:233:59:233:66 | source() |
65
69
isSink
66
70
| test.js:54:18:54:25 | source() | test-sink |
67
71
| test.js:55:22:55:29 | source() | test-sink |
@@ -128,6 +132,8 @@ isSink
128
132
| test.js:223:45:223:52 | source() | test-sink |
129
133
| test.js:225:39:225:46 | source() | test-sink |
130
134
| test.js:226:50:226:57 | source() | test-sink |
135
+ | test.js:230:59:230:66 | source() | test-sink |
136
+ | test.js:233:59:233:66 | source() | test-sink |
131
137
syntaxErrors
132
138
| Member[foo |
133
139
| Member[foo] .Member[bar] |
Original file line number Diff line number Diff line change @@ -226,4 +226,9 @@ function typeVars() {
226
226
testlib . typevar . left . left . x . right . right . mySink ( source ( ) ) ; // NOT OK
227
227
testlib . typevar . left . x . right . right . mySink ( source ( ) ) ; // OK - mismatched left and right
228
228
testlib . typevar . left . left . x . right . mySink ( source ( ) ) ; // OK - mismatched left and right
229
+
230
+ testlib . typevar . getThis ( ) . getThis ( ) . left . x . right . mySink ( source ( ) ) ; // NOT OK
231
+ testlib . typevar . left . getThis ( ) . getThis ( ) . x . right . mySink ( source ( ) ) ; // NOT OK
232
+ testlib . typevar . left . x . getThis ( ) . getThis ( ) . right . mySink ( source ( ) ) ; // NOT OK
233
+ testlib . typevar . left . x . right . getThis ( ) . getThis ( ) . mySink ( source ( ) ) ; // NOT OK
229
234
}
Original file line number Diff line number Diff line change @@ -14,6 +14,17 @@ class Steps extends ModelInput::SummaryModelCsv {
14
14
"testlib;;Member[preserveAllButFirstArgument];Argument[1..];ReturnValue;taint" ,
15
15
"testlib;;Member[preserveAllIfCall].Call;Argument[0..];ReturnValue;taint" ,
16
16
"testlib;;Member[getSource].ReturnValue.Member[continue];Argument[this];ReturnValue;taint" ,
17
+ "testlib;~HasThisFlow;;;Member[getThis].ReturnValue;type" ,
18
+ ]
19
+ }
20
+ }
21
+
22
+ class TypeDefs extends ModelInput:: TypeModelCsv {
23
+ override predicate row ( string row ) {
24
+ row =
25
+ [
26
+ "testlib;~HasThisFlow;testlib;;Member[typevar]" ,
27
+ "testlib;~HasThisFlow;testlib;~HasThisFlow;Member[left,right,x]" ,
17
28
]
18
29
}
19
30
}
You can’t perform that action at this time.
0 commit comments