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

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()