Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ecc5a4a

Browse files
committed
Python: testIsTrue -> branch
1 parent 2a4e28d commit ecc5a4a

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

python/ql/src/experimental/dataflow/internal/DataFlowPublic.qll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,11 +177,11 @@ class BarrierGuard extends GuardNode {
177177

178178
/** Gets a node guarded by this guard. */
179179
final ExprNode getAGuardedNode() {
180-
exists(EssaDefinition def, ControlFlowNode node, boolean testIsTrue |
180+
exists(EssaDefinition def, ControlFlowNode node, boolean branch |
181181
AdjacentUses::aUse(def, node) and
182-
this.checks(node, testIsTrue) and
182+
this.checks(node, branch) and
183183
AdjacentUses::aUse(def, result.asCfgNode()) and
184-
this.controlsBlock(result.asCfgNode().getBasicBlock(), testIsTrue)
184+
this.controlsBlock(result.asCfgNode().getBasicBlock(), branch)
185185
)
186186
}
187187
}

python/ql/test/experimental/dataflow/tainttracking/customSanitizer/TestTaint.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ query predicate isSanitizerGuard(TestTaintTrackingConfiguration conf, DataFlow::
3434

3535
query predicate sanitizerGuardControls(
3636
TestTaintTrackingConfiguration conf, DataFlow::BarrierGuard guard, ControlFlowNode node,
37-
boolean testIsTrue
37+
boolean branch
3838
) {
3939
exists(guard.getLocation().getFile().getRelativePath()) and
4040
conf.isSanitizerGuard(guard) and
41-
guard.controlsBlock(node.getBasicBlock(), testIsTrue)
41+
guard.controlsBlock(node.getBasicBlock(), branch)
4242
}
4343

4444
query predicate sanitizerGuardedNode(

0 commit comments

Comments
 (0)