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

Module PrintfLike

Provides a predicate for identifying formatting functions like printf.

Consider using the newer model in semmle.code.cpp.models.interfaces.FormattingFunction directly instead of this library.

Import path

import semmle.code.cpp.security.PrintfLike

Imports

ExternalArtifact

Provides classes for working with external data.

Printf

A library for dealing with printf-like formatting strings.

Predicates

printfLikeFunction

Holds if func is a printf-like formatting function and formatArg is the index of the format string argument.