mirror of
https://github.com/github/codeql.git
synced 2026-04-29 18:55:14 +02:00
Python: testIsTrue -> branch
This commit is contained in:
@@ -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)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user