1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-23 06:44:38 +01:00

Additional validation

This commit is contained in:
duncanspumpkin
2020-03-31 19:13:13 +01:00
parent 6560de0705
commit 0fd793504e

View File

@@ -370,6 +370,8 @@ static void format_append_string(char** dest, size_t* size, const utf8* string)
{
if ((*size) == 0)
return;
if (string == nullptr)
return;
size_t length = strnlen(string, *size);
if (length < (*size))
{