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

Predicate variableMustBeNullTerminated

Holds if va is a variable access where the contents must be null terminated.

Import path

import semmle.code.cpp.commons.NullTermination
predicate variableMustBeNullTerminated(VariableAccess va)