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

Predicate mayAddNullTerminator

Holds if the expression e may add a null terminator to the string accessed by va.

Import path

import semmle.code.cpp.commons.NullTermination
predicate mayAddNullTerminator(Expr e, VariableAccess va)