Skip to content

Commit 91be483

Browse files
geoffw0MathiasVP
andauthored
Update cpp/ql/src/Security/CWE/CWE-191/UnsignedDifferenceExpressionComparedZero.ql
Co-authored-by: Mathias Vorreiter Pedersen <[email protected]>
1 parent fc96c1c commit 91be483

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ predicate exprIsSubLeftOrLess(SubExpr sub, DataFlow::Node n) {
5555
exists(DataFlow::Node other, float p, float q |
5656
// linear access of `other`
5757
exprIsSubLeftOrLess(sub, other) and
58-
linearAccess(n.asExpr(), other.asExpr(), p, q) and // e = p * other + q
58+
linearAccess(n.asExpr(), other.asExpr(), p, q) and // n = p * other + q
5959
p <= 1 and
6060
q <= 0
6161
)

0 commit comments

Comments
 (0)