mirror of
https://github.com/github/codeql.git
synced 2026-04-28 02:05:14 +02:00
Apply suggestions from code review
Will make the same renames in the changed code also.. Co-authored-by: Rasmus Wriedt Larsen <rasmuswriedtlarsen@gmail.com>
This commit is contained in:
@@ -3,9 +3,9 @@ import experimental.dataflow.tainttracking.TestTaintLib
|
||||
class IsSafeCheck extends DataFlow::BarrierGuard {
|
||||
IsSafeCheck() { this.(CallNode).getNode().getFunc().(Name).getId() = "emulated_is_safe" }
|
||||
|
||||
override predicate checks(ControlFlowNode node, boolean testIsTrue) {
|
||||
override predicate checks(ControlFlowNode node, boolean branch) {
|
||||
node = this.(CallNode).getAnArg() and
|
||||
testIsTrue = true
|
||||
branch = true
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user