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

Member predicate FormatLiteral::getMaxConvertedLengthLimitedWithReason

Gets the maximum length of the string that can be produced by this format string, specifying the reason for the estimate, except that float to string conversions are assumed to be 8 characters. This is helpful for determining whether a buffer overflow is caused by long float to string conversions.

int getMaxConvertedLengthLimitedWithReason(BufferWriteEstimationReason reason)