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

Predicate guardedLessThanSomething

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

Import path

import semmle.code.java.security.ArithmeticCommon
predicate guardedLessThanSomething(Node n)