-
Notifications
You must be signed in to change notification settings - Fork 2k
Expand file tree
/
Copy pathtests.ql
More file actions
28 lines (22 loc) · 832 Bytes
/
tests.ql
File metadata and controls
28 lines (22 loc) · 832 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import javascript
import ExampleConfiguration
deprecated query predicate isBarrier(ExampleConfiguration cfg, DataFlow::Node n) {
cfg.isBarrier(n)
}
deprecated query predicate isLabeledBarrier(
ExampleConfiguration cfg, DataFlow::Node n, DataFlow::FlowLabel label
) {
cfg.isLabeledBarrier(n, label)
}
deprecated query predicate isSanitizer(ExampleConfiguration cfg, DataFlow::Node n) {
cfg.isSanitizer(n)
}
deprecated query predicate sanitizingGuard(DataFlow::Node g, Expr e, boolean b) {
g.(TaintTracking::SanitizerGuardNode).sanitizes(b, e)
or
g.(TaintTracking::AdditionalSanitizerGuardNode).sanitizes(b, e)
}
query predicate taintedSink(DataFlow::Node source, DataFlow::Node sink) {
TestFlow::flow(source, sink)
}
deprecated import utils.test.LegacyDataFlowDiff::DataFlowDiff<TestFlow, ExampleConfiguration>