CodeQL library for C/C++
codeql/cpp-all 5.2.0 (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)