Skip to content

Commit b55921a

Browse files
MathiasVPgeoffw0
andauthored
Update cpp/ql/src/experimental/Security/CWE/CWE-191/UnsignedDifferenceExpressionComparedZero.ql
Co-authored-by: Geoffrey White <40627776+geoffw0@users.noreply.github.com>
1 parent 691a316 commit b55921a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import semmle.code.cpp.valuenumbering.GlobalValueNumbering
1717
import semmle.code.cpp.rangeanalysis.SimpleRangeAnalysis
1818
import semmle.code.cpp.controlflow.Guards
1919

20-
/** Holds if `sub` will never be nonnegative. */
20+
/** Holds if `sub` will never be negative. */
2121
predicate nonNegative(SubExpr sub) {
2222
not exprMightOverflowNegatively(sub.getFullyConverted())
2323
or

0 commit comments

Comments
 (0)