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

Predicate guardedLessThanSomething

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

Import path

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