Module FormattingFunction
Provides a class for modeling printf-style formatting functions. To use
this QL library, create a QL class extending FormattingFunction with a
characteristic predicate that selects the function or set of functions you
are modeling. Within that class, override the predicates provided by
FormattingFunction to match the flow within that function.
Import path
import semmle.code.cpp.models.interfaces.FormattingFunctionImports
| ArrayFunction | Provides an abstract class for accurate modeling of input and output buffers in library functions when source code is not available. To use this QL library, create a QL class extending |
| Taint | Provides an abstract class for accurate taint modeling of library functions when source code is not available. To use this QL library, create a QL class extending |
Predicates
| getAFormatterWideType | A type that is used as a format string by any formatting function. |
Classes
| FormattingFunction | A standard library function that uses a |
| Snprintf | The standard functions |