Skip to content

Commit a9901a4

Browse files
committed
JS: Update TaintBarriers/isBarrier test
1 parent de7fbce commit a9901a4

2 files changed

Lines changed: 52 additions & 46 deletions

File tree

Lines changed: 45 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,45 @@
1-
| tst.js:6:14:6:14 | v | ExampleConfiguration |
2-
| tst.js:14:14:14:14 | v | ExampleConfiguration |
3-
| tst.js:24:14:24:14 | v | ExampleConfiguration |
4-
| tst.js:36:14:36:14 | v | ExampleConfiguration |
5-
| tst.js:50:14:50:14 | v | ExampleConfiguration |
6-
| tst.js:56:14:56:14 | v | ExampleConfiguration |
7-
| tst.js:60:14:60:14 | v | ExampleConfiguration |
8-
| tst.js:74:14:74:14 | v | ExampleConfiguration |
9-
| tst.js:80:14:80:14 | v | ExampleConfiguration |
10-
| tst.js:84:14:84:14 | v | ExampleConfiguration |
11-
| tst.js:96:14:96:14 | v | ExampleConfiguration |
12-
| tst.js:108:14:108:14 | v | ExampleConfiguration |
13-
| tst.js:120:14:120:14 | v | ExampleConfiguration |
14-
| tst.js:132:14:132:14 | v | ExampleConfiguration |
15-
| tst.js:134:14:134:16 | v.p | ExampleConfiguration |
16-
| tst.js:136:14:136:18 | v.p.q | ExampleConfiguration |
17-
| tst.js:148:9:148:27 | v | ExampleConfiguration |
18-
| tst.js:149:14:149:14 | v | ExampleConfiguration |
19-
| tst.js:154:9:154:27 | v | ExampleConfiguration |
20-
| tst.js:157:14:157:14 | v | ExampleConfiguration |
21-
| tst.js:160:9:160:30 | v | ExampleConfiguration |
22-
| tst.js:160:35:160:56 | v | ExampleConfiguration |
23-
| tst.js:167:14:167:14 | v | ExampleConfiguration |
24-
| tst.js:176:18:176:18 | v | ExampleConfiguration |
25-
| tst.js:185:14:185:14 | v | ExampleConfiguration |
26-
| tst.js:193:14:193:14 | v | ExampleConfiguration |
27-
| tst.js:205:14:205:14 | v | ExampleConfiguration |
28-
| tst.js:209:14:209:14 | v | ExampleConfiguration |
29-
| tst.js:217:14:217:14 | v | ExampleConfiguration |
30-
| tst.js:221:14:221:14 | v | ExampleConfiguration |
31-
| tst.js:229:14:229:14 | v | ExampleConfiguration |
32-
| tst.js:237:14:237:14 | v | ExampleConfiguration |
33-
| tst.js:241:14:241:14 | v | ExampleConfiguration |
34-
| tst.js:255:14:255:14 | v | ExampleConfiguration |
35-
| tst.js:265:14:265:14 | v | ExampleConfiguration |
36-
| tst.js:284:14:284:14 | v | ExampleConfiguration |
37-
| tst.js:331:14:331:14 | v | ExampleConfiguration |
38-
| tst.js:350:14:350:14 | v | ExampleConfiguration |
39-
| tst.js:356:16:356:27 | x10 | ExampleConfiguration |
40-
| tst.js:356:32:356:34 | x10 | ExampleConfiguration |
41-
| tst.js:361:14:361:14 | v | ExampleConfiguration |
42-
| tst.js:371:14:371:16 | o.p | ExampleConfiguration |
43-
| tst.js:378:14:378:17 | o[p] | ExampleConfiguration |
1+
isBarrier
2+
isLabeledBarrier
3+
| ExampleConfiguration | tst.js:6:14:6:14 | v | taint |
4+
| ExampleConfiguration | tst.js:14:14:14:14 | v | taint |
5+
| ExampleConfiguration | tst.js:24:14:24:14 | v | taint |
6+
| ExampleConfiguration | tst.js:36:14:36:14 | v | taint |
7+
| ExampleConfiguration | tst.js:50:14:50:14 | v | taint |
8+
| ExampleConfiguration | tst.js:56:14:56:14 | v | taint |
9+
| ExampleConfiguration | tst.js:60:14:60:14 | v | taint |
10+
| ExampleConfiguration | tst.js:74:14:74:14 | v | taint |
11+
| ExampleConfiguration | tst.js:80:14:80:14 | v | taint |
12+
| ExampleConfiguration | tst.js:84:14:84:14 | v | taint |
13+
| ExampleConfiguration | tst.js:96:14:96:14 | v | taint |
14+
| ExampleConfiguration | tst.js:108:14:108:14 | v | taint |
15+
| ExampleConfiguration | tst.js:120:14:120:14 | v | taint |
16+
| ExampleConfiguration | tst.js:132:14:132:14 | v | taint |
17+
| ExampleConfiguration | tst.js:134:14:134:16 | v.p | taint |
18+
| ExampleConfiguration | tst.js:136:14:136:18 | v.p.q | taint |
19+
| ExampleConfiguration | tst.js:148:9:148:27 | v | taint |
20+
| ExampleConfiguration | tst.js:149:14:149:14 | v | taint |
21+
| ExampleConfiguration | tst.js:154:9:154:27 | v | taint |
22+
| ExampleConfiguration | tst.js:157:14:157:14 | v | taint |
23+
| ExampleConfiguration | tst.js:160:9:160:30 | v | taint |
24+
| ExampleConfiguration | tst.js:160:35:160:56 | v | taint |
25+
| ExampleConfiguration | tst.js:167:14:167:14 | v | taint |
26+
| ExampleConfiguration | tst.js:176:18:176:18 | v | taint |
27+
| ExampleConfiguration | tst.js:185:14:185:14 | v | taint |
28+
| ExampleConfiguration | tst.js:193:14:193:14 | v | taint |
29+
| ExampleConfiguration | tst.js:205:14:205:14 | v | taint |
30+
| ExampleConfiguration | tst.js:209:14:209:14 | v | taint |
31+
| ExampleConfiguration | tst.js:217:14:217:14 | v | taint |
32+
| ExampleConfiguration | tst.js:221:14:221:14 | v | taint |
33+
| ExampleConfiguration | tst.js:229:14:229:14 | v | taint |
34+
| ExampleConfiguration | tst.js:237:14:237:14 | v | taint |
35+
| ExampleConfiguration | tst.js:241:14:241:14 | v | taint |
36+
| ExampleConfiguration | tst.js:255:14:255:14 | v | taint |
37+
| ExampleConfiguration | tst.js:265:14:265:14 | v | taint |
38+
| ExampleConfiguration | tst.js:284:14:284:14 | v | taint |
39+
| ExampleConfiguration | tst.js:331:14:331:14 | v | taint |
40+
| ExampleConfiguration | tst.js:350:14:350:14 | v | taint |
41+
| ExampleConfiguration | tst.js:356:16:356:27 | x10 | taint |
42+
| ExampleConfiguration | tst.js:356:32:356:34 | x10 | taint |
43+
| ExampleConfiguration | tst.js:361:14:361:14 | v | taint |
44+
| ExampleConfiguration | tst.js:371:14:371:16 | o.p | taint |
45+
| ExampleConfiguration | tst.js:378:14:378:17 | o[p] | taint |
Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
import javascript
22
import ExampleConfiguration
33

4-
from ExampleConfiguration cfg, DataFlow::Node n
5-
where cfg.isBarrier(n)
6-
select n, cfg
4+
query predicate isBarrier(ExampleConfiguration cfg, DataFlow::Node n) {
5+
cfg.isBarrier(n)
6+
}
7+
8+
query predicate isLabeledBarrier(ExampleConfiguration cfg, DataFlow::Node n, DataFlow::FlowLabel label) {
9+
cfg.isLabeledBarrier(n, label)
10+
}

0 commit comments

Comments
 (0)