mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-23 06:44:38 +01:00
Additional validation
This commit is contained in:
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user