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

Predicate guardedAbs

Holds if the value of use is guarded using abs.

Import path

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