Skip to content

Commit 2e40d01

Browse files
MathiasVPgeoffw0
andauthored
Update cpp/ql/src/semmle/code/cpp/security/Overflow.qll
Co-authored-by: Geoffrey White <[email protected]>
1 parent aa52585 commit 2e40d01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/ql/src/semmle/code/cpp/security/Overflow.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ VariableAccess varUse(LocalScopeVariable v) { result = v.getAnAccess() }
9898
* Holds if `e` potentially overflows and `use` is an operand of `e` that is not guarded.
9999
*/
100100
predicate missingGuardAgainstOverflow(Operation e, VariableAccess use) {
101-
convertedExprMightOverflow(e) and
101+
convertedExprMightOverflowPositively(e) and
102102
use = e.getAnOperand() and
103103
exists(LocalScopeVariable v | use.getTarget() = v |
104104
// overflow possible if large

0 commit comments

Comments
 (0)