Skip to content

Commit c373be0

Browse files
committed
JS: Update TaintBarriers test
1 parent f48d16f commit c373be0

4 files changed

Lines changed: 2 additions & 7 deletions

File tree

javascript/ql/test/library-tests/TaintBarriers/SanitizingGuard.expected

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,11 @@
4444
| tst.js:236:9:236:24 | isWhitelisted(v) | ExampleConfiguration | true | tst.js:236:23:236:23 | v |
4545
| tst.js:240:9:240:28 | config.allowValue(v) | ExampleConfiguration | true | tst.js:240:27:240:27 | v |
4646
| tst.js:252:16:252:36 | whiteli ... ains(x) | ExampleConfiguration | true | tst.js:252:35:252:35 | x |
47-
| tst.js:254:9:254:12 | f(v) | ExampleConfiguration | true | tst.js:254:11:254:11 | v |
4847
| tst.js:261:25:261:45 | whiteli ... ains(y) | ExampleConfiguration | true | tst.js:261:44:261:44 | y |
49-
| tst.js:264:9:264:12 | g(v) | ExampleConfiguration | true | tst.js:264:11:264:11 | v |
5048
| tst.js:271:25:271:45 | whiteli ... ains(z) | ExampleConfiguration | true | tst.js:271:44:271:44 | z |
5149
| tst.js:281:16:281:25 | x2 != null | ExampleConfiguration | false | tst.js:281:16:281:17 | x2 |
5250
| tst.js:281:16:281:25 | x2 != null | ExampleConfiguration | false | tst.js:281:22:281:25 | null |
5351
| tst.js:281:30:281:51 | whiteli ... ins(x2) | ExampleConfiguration | true | tst.js:281:49:281:50 | x2 |
54-
| tst.js:283:9:283:13 | f2(v) | ExampleConfiguration | true | tst.js:283:12:283:12 | v |
5552
| tst.js:290:16:290:25 | x3 == null | ExampleConfiguration | true | tst.js:290:16:290:17 | x3 |
5653
| tst.js:290:16:290:25 | x3 == null | ExampleConfiguration | true | tst.js:290:22:290:25 | null |
5754
| tst.js:290:30:290:51 | whiteli ... ins(x3) | ExampleConfiguration | true | tst.js:290:49:290:50 | x3 |
@@ -61,7 +58,6 @@
6158
| tst.js:327:25:327:34 | x7 != null | ExampleConfiguration | false | tst.js:327:25:327:26 | x7 |
6259
| tst.js:327:25:327:34 | x7 != null | ExampleConfiguration | false | tst.js:327:31:327:34 | null |
6360
| tst.js:327:39:327:60 | whiteli ... ins(x7) | ExampleConfiguration | true | tst.js:327:58:327:59 | x7 |
64-
| tst.js:330:9:330:13 | f7(v) | ExampleConfiguration | true | tst.js:330:12:330:12 | v |
6561
| tst.js:337:25:337:46 | whiteli ... ins(x8) | ExampleConfiguration | true | tst.js:337:44:337:45 | x8 |
6662
| tst.js:338:16:338:25 | x8 != null | ExampleConfiguration | false | tst.js:338:16:338:17 | x8 |
6763
| tst.js:338:16:338:25 | x8 != null | ExampleConfiguration | false | tst.js:338:22:338:25 | null |
@@ -70,6 +66,5 @@
7066
| tst.js:356:16:356:27 | x10 !== null | ExampleConfiguration | false | tst.js:356:24:356:27 | null |
7167
| tst.js:356:32:356:48 | x10 !== undefined | ExampleConfiguration | false | tst.js:356:32:356:34 | x10 |
7268
| tst.js:356:32:356:48 | x10 !== undefined | ExampleConfiguration | false | tst.js:356:40:356:48 | undefined |
73-
| tst.js:358:9:358:14 | f10(v) | ExampleConfiguration | false | tst.js:358:13:358:13 | v |
7469
| tst.js:370:9:370:29 | o.p == ... listed" | ExampleConfiguration | true | tst.js:370:9:370:11 | o.p |
7570
| tst.js:377:11:377:32 | o[p] == ... listed" | ExampleConfiguration | true | tst.js:377:11:377:14 | o[p] |

javascript/ql/test/library-tests/TaintBarriers/TaintedSink.expected

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@
5353
| tst.js:333:14:333:14 | v | tst.js:248:13:248:20 | SOURCE() |
5454
| tst.js:341:14:341:14 | v | tst.js:248:13:248:20 | SOURCE() |
5555
| tst.js:343:14:343:14 | v | tst.js:248:13:248:20 | SOURCE() |
56-
| tst.js:350:14:350:14 | v | tst.js:248:13:248:20 | SOURCE() |
5756
| tst.js:352:14:352:14 | v | tst.js:248:13:248:20 | SOURCE() |
5857
| tst.js:359:14:359:14 | v | tst.js:248:13:248:20 | SOURCE() |
5958
| tst.js:368:10:368:12 | o.p | tst.js:367:13:367:20 | SOURCE() |

javascript/ql/test/library-tests/TaintBarriers/isBarrier.expected

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
| tst.js:265:14:265:14 | v | ExampleConfiguration |
3838
| tst.js:284:14:284:14 | v | ExampleConfiguration |
3939
| tst.js:331:14:331:14 | v | ExampleConfiguration |
40+
| tst.js:350:14:350:14 | v | ExampleConfiguration |
4041
| tst.js:356:16:356:27 | x10 | ExampleConfiguration |
4142
| tst.js:356:32:356:34 | x10 | ExampleConfiguration |
4243
| tst.js:361:14:361:14 | v | ExampleConfiguration |

javascript/ql/test/library-tests/TaintBarriers/tst.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ function IndirectSanitizer () {
347347
return unknown() && whitelist.contains(x9) && unknown();
348348
}
349349
if (f9(v)) {
350-
SINK(v); // SANITIZATION OF THIS IS NOT YET SUPPORTED
350+
SINK(v);
351351
} else {
352352
SINK(v);
353353
}

0 commit comments

Comments
 (0)