CodeQL library for C/C++

Member predicate FormatLiteral::getMaxConvertedLengthLimited

Gets the maximum length of the string that can be produced by the nth conversion specifier of this format string, 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 getMaxConvertedLengthLimited(int n)