Update cpp/ql/src/Security/CWE/CWE-191/UnsignedDifferenceExpressionComparedZero.ql

Co-authored-by: Mathias Vorreiter Pedersen <mathiasvp@github.com>
This commit is contained in:
Geoffrey White
2021-05-07 16:19:48 +01:00
committed by GitHub
parent 8daca01c87
commit 894f5d523c

View File

@@ -35,7 +35,7 @@ predicate isGuarded(SubExpr sub, Expr left, Expr right) {
* `sub.getLeftOperand()`.
*/
predicate exprIsSubLeftOrLess(SubExpr sub, DataFlow::Node n) {
n = DataFlow::exprNode(sub.getLeftOperand())
n.asExpr() = sub.getLeftOperand()
or
exists(DataFlow::Node other |
// dataflow