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

Skip to content

Commit 2a4e28d

Browse files
yoffRasmusWL
andauthored
Apply suggestions from code review
Will make the same renames in the changed code also.. Co-authored-by: Rasmus Wriedt Larsen <[email protected]>
1 parent 033529e commit 2a4e28d

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,8 @@ class GuardNode extends ControlFlowNode {
172172
* It is important that all extending classes in scope are disjoint.
173173
*/
174174
class BarrierGuard extends GuardNode {
175-
/** Holds if this guard validates `e` upon evaluating to `v`. */
176-
abstract predicate checks(ControlFlowNode node, boolean testIsTrue);
175+
/** Holds if this guard validates `node` upon evaluating to `branch`. */
176+
abstract predicate checks(ControlFlowNode node, boolean branch);
177177

178178
/** Gets a node guarded by this guard. */
179179
final ExprNode getAGuardedNode() {

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import experimental.dataflow.tainttracking.TestTaintLib
33
class IsSafeCheck extends DataFlow::BarrierGuard {
44
IsSafeCheck() { this.(CallNode).getNode().getFunc().(Name).getId() = "emulated_is_safe" }
55

6-
override predicate checks(ControlFlowNode node, boolean testIsTrue) {
6+
override predicate checks(ControlFlowNode node, boolean branch) {
77
node = this.(CallNode).getAnArg() and
8-
testIsTrue = true
8+
branch = true
99
}
1010
}
1111

0 commit comments

Comments
 (0)