Remove type check from the barrier predicate

This commit is contained in:
Joe Farebrother
2022-09-20 14:48:21 +01:00
parent ed8ec89497
commit eb3655da1c

View File

@@ -34,8 +34,6 @@ class WebviewDebugEnabledConfig extends DataFlow::Configuration {
}
override predicate isBarrier(DataFlow::Node node) {
not node.getType() instanceof BooleanType
or
exists(Guard debug | isDebugCheck(debug) and debug.controls(node.asExpr().getBasicBlock(), _))
or
node.getEnclosingCallable().getDeclaringType() instanceof NonSecurityTestClass