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

Member predicate SprintfBW::getMaxDataLimited

Gets an upper bound to the amount of data that’s being written (if one can be found), except that float to string conversions are assumed to be much smaller (8 bytes) than their true maximum length. This can be helpful in determining the cause of a buffer overflow issue.

int getMaxDataLimited()