mirror of
https://github.com/github/codeql.git
synced 2026-07-18 09:48:15 +02:00
25 lines
776 B
Plaintext
25 lines
776 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(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)
|
|
}
|
|
|
|
import testUtilities.LegacyDataFlowDiff::DataFlowDiff<TestFlow, ExampleConfiguration>
|