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