vsnprintf: Fix crash when _out is NULL.

This commit is contained in:
Бранимир Караџић
2024-12-04 19:23:10 -08:00
parent 4a1f0ab630
commit 32e578b22f
2 changed files with 10 additions and 1 deletions

View File

@@ -1230,7 +1230,8 @@ namespace bx
int32_t vsnprintf(char* _out, int32_t _max, const char* _format, va_list _argList)
{
if (0 < _max)
if ( 0 < _max
&& NULL != _out)
{
StaticMemoryBlockWriter writer(_out, uint32_t(_max) );