File tree Expand file tree Collapse file tree
cpp/ql/src/Security/CWE/CWE-191 Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55<overview >
66<p >
77This rule finds relational comparisons between the result of an unsigned subtraction and the value <code >0</code >.
8- Such comparisons are likely wrong as the value of an unsigned subtraction can never be negative. So the
8+ Such comparisons are likely to be wrong as the value of an unsigned subtraction can never be negative. So the
99relational comparison ends up checking whether the result of the subtraction is equal to <code >0</code >.
10- This is likely not what the programmer intended.
10+ This is probably not what the programmer intended.
1111</p >
1212</overview >
1313<recommendation >
@@ -23,7 +23,7 @@ This is likely not what the programmer intended.
2323</example >
2424<references >
2525
26- <li >CERT C Coding Standard:
26+ <li >SEI CERT C Coding Standard:
2727<a href =" https://wiki.sei.cmu.edu/confluence/display/c/INT02-C.+Understand+integer+conversion+rules" >INT02-C. Understand integer conversion rules</a >.
2828</li >
2929
You can’t perform that action at this time.
0 commit comments