Skip to content
Snippets Groups Projects
Commit 6149965c authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Fix buffer overrun in llformat

parent 142e05f6
No related branches found
No related tags found
No related merge requests found
......@@ -35,11 +35,11 @@
// wrapper for vsnprintf to be called from llformatXXX functions.
static void va_format(std::string& out, const char *fmt, va_list va)
{
char tstr[1024]; /* Flawfinder: ignore */
char tstr[2048]; /* Flawfinder: ignore */
#if LL_WINDOWS
_vsnprintf(tstr, 1024, fmt, va);
_vsnprintf(tstr, 2048, fmt, va);
#else
vsnprintf(tstr, 1024, fmt, va); /* Flawfinder: ignore */
vsnprintf(tstr, 2048, fmt, va); /* Flawfinder: ignore */
#endif
out.assign(tstr);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment