Skip to content

Commit 5d2ce17

Browse files
committed
JS: Update a test to handle AdditionalSanitizerGuardNode
1 parent 6cbe04d commit 5d2ce17

File tree

1 file changed

+4
-2
lines changed
  • javascript/ql/test/library-tests/TaintBarriers

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@ query predicate isLabeledBarrier(
1111

1212
query predicate isSanitizer(ExampleConfiguration cfg, DataFlow::Node n) { cfg.isSanitizer(n) }
1313

14-
query predicate sanitizingGuard(TaintTracking::SanitizerGuardNode g, Expr e, boolean b) {
15-
g.sanitizes(b, e)
14+
query predicate sanitizingGuard(DataFlow::Node g, Expr e, boolean b) {
15+
g.(TaintTracking::SanitizerGuardNode).sanitizes(b, e)
16+
or
17+
g.(TaintTracking::AdditionalSanitizerGuardNode).sanitizes(b, e)
1618
}
1719

1820
query predicate taintedSink(DataFlow::Node source, DataFlow::Node sink) {

0 commit comments

Comments
 (0)