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

Predicate mayReturnNull

Holds if f may, directly or indirectly, return a null literal.

Import path

import cpp
predicate mayReturnNull(Function f)