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

Predicate formatArgumentMustBeNullTerminated

Holds if arg is a string format argument to a formatting function call ffc.

Import path

import semmle.code.cpp.commons.NullTermination
predicate formatArgumentMustBeNullTerminated(FormattingFunctionCall ffc, Expr arg)