JS: Update a reference to AdditionalSanitizerGuardNode

Unlike most other references to this class, we're not subclassing it here, we're
just trying to reuse some standard barrier guards but with a different flow state.
This commit is contained in:
Asger F
2024-11-28 11:53:02 +01:00
parent 834d35bc42
commit 04a3a6707f

View File

@@ -465,7 +465,7 @@ class AllowListInclusionGuard extends BarrierGuard {
}
override predicate blocksExpr(boolean outcome, Expr e, DataFlow::FlowLabel lbl) {
this.(TaintTracking::AdditionalSanitizerGuardNode).sanitizes(outcome, e) and
this.(TaintTracking::AdditionalBarrierGuard).blocksExpr(outcome, e) and
lbl instanceof UnsafePropLabel
}
}