CodeQL library for C/C++
codeql/cpp-all 1.1.0 (changelog, source)
Search

Predicate exprMightOverflowPositively

Holds if the expression might overflow positively. This predicate does not consider the possibility that the expression might overflow due to a conversion.

Import path

import semmle.code.cpp.rangeanalysis.new.SimpleRangeAnalysis
predicate exprMightOverflowPositively(Expr expr)