Python: testIsTrue -> branch

This commit is contained in:
Rasmus Lerchedahl Petersen
2020-09-14 15:32:03 +02:00
parent 2a4e28db16
commit ecc5a4a1f6
2 changed files with 5 additions and 5 deletions

View File

@@ -177,11 +177,11 @@ class BarrierGuard extends GuardNode {
/** Gets a node guarded by this guard. */
final ExprNode getAGuardedNode() {
exists(EssaDefinition def, ControlFlowNode node, boolean testIsTrue |
exists(EssaDefinition def, ControlFlowNode node, boolean branch |
AdjacentUses::aUse(def, node) and
this.checks(node, testIsTrue) and
this.checks(node, branch) and
AdjacentUses::aUse(def, result.asCfgNode()) and
this.controlsBlock(result.asCfgNode().getBasicBlock(), testIsTrue)
this.controlsBlock(result.asCfgNode().getBasicBlock(), branch)
)
}
}

View File

@@ -34,11 +34,11 @@ query predicate isSanitizerGuard(TestTaintTrackingConfiguration conf, DataFlow::
query predicate sanitizerGuardControls(
TestTaintTrackingConfiguration conf, DataFlow::BarrierGuard guard, ControlFlowNode node,
boolean testIsTrue
boolean branch
) {
exists(guard.getLocation().getFile().getRelativePath()) and
conf.isSanitizerGuard(guard) and
guard.controlsBlock(node.getBasicBlock(), testIsTrue)
guard.controlsBlock(node.getBasicBlock(), branch)
}
query predicate sanitizerGuardedNode(