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

Predicate guardedLesser

Holds if the value of use is guarded to be less than something, and e is in code controlled by that guard (where the guard condition held).

Import path

import semmle.code.cpp.security.Overflow
predicate guardedLesser(Operation e, Expr use)