Apply suggestions from code review

Co-authored-by: Chris Smowton <smowton@github.com>
This commit is contained in:
Slavomir
2021-07-16 00:42:36 +03:00
committed by GitHub
parent 92e0f02d2a
commit e92738a93f

View File

@@ -122,11 +122,9 @@ class FlowsFromUntrusted extends TaintTracking::Configuration {
predicate isSink(DataFlow::Node sink, ControlFlow::ConditionGuardNode cgn) {
exists(IfStmt ifs |
exists(Expr child, Expr operand |
child = ifs.getCond().getAChildExpr*() and
operand = child and
exists(Expr operand |
operand = ifs.getCond().getAChildExpr*() and
(
//
exists(DataFlow::CallExpr call | call = operand |
call.getTarget().hasQualifiedName("strings", "HasSuffix") and
sink.asExpr() = call.getArgument(0)