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

Member predicate ScanfFormatLiteral::getFormat

Gets the format string itself, transformed as follows:

  • ‘%%’ is replaced with ‘_’ (this avoids accidentally processing them as format specifiers)
  • ‘%*’ is replaced with ‘_’ (%*any is matched but not assigned to an argument)
string getFormat()