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

Predicate guardedGreater

Holds if the value of use is guarded to be greater 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 guardedGreater(Operation e, Expr use)