mirror of
https://github.com/github/codeql.git
synced 2026-04-08 00:24:03 +02:00
23 lines
688 B
Plaintext
23 lines
688 B
Plaintext
import javascript
|
|
import ExampleConfiguration
|
|
|
|
query predicate isBarrier(ExampleConfiguration cfg, DataFlow::Node n) { cfg.isBarrier(n) }
|
|
|
|
query predicate isLabeledBarrier(
|
|
ExampleConfiguration cfg, DataFlow::Node n, DataFlow::FlowLabel label
|
|
) {
|
|
cfg.isLabeledBarrier(n, label)
|
|
}
|
|
|
|
query predicate isSanitizer(ExampleConfiguration cfg, DataFlow::Node n) { cfg.isSanitizer(n) }
|
|
|
|
query predicate sanitizingGuard(TaintTracking::SanitizerGuardNode g, Expr e, boolean b) {
|
|
g.sanitizes(b, e)
|
|
}
|
|
|
|
query predicate taintedSink(DataFlow::Node source, DataFlow::Node sink) {
|
|
TestFlow::flow(source, sink)
|
|
}
|
|
|
|
import testUtilities.LegacyDataFlowDiff::DataFlowDiff<TestFlow, ExampleConfiguration>
|