CodeQL library for Java/Kotlin
codeql/java-all 5.0.1-dev (changelog, source)
Search

Predicate guardedGreaterThanSomething

Holds if e is bounded in a way that is likely to prevent underflow.

Import path

import semmle.code.java.security.ArithmeticCommon
predicate guardedGreaterThanSomething(Expr e)