We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa52585 commit 2e40d01Copy full SHA for 2e40d01
cpp/ql/src/semmle/code/cpp/security/Overflow.qll
@@ -98,7 +98,7 @@ VariableAccess varUse(LocalScopeVariable v) { result = v.getAnAccess() }
98
* Holds if `e` potentially overflows and `use` is an operand of `e` that is not guarded.
99
*/
100
predicate missingGuardAgainstOverflow(Operation e, VariableAccess use) {
101
- convertedExprMightOverflow(e) and
+ convertedExprMightOverflowPositively(e) and
102
use = e.getAnOperand() and
103
exists(LocalScopeVariable v | use.getTarget() = v |
104
// overflow possible if large
0 commit comments