Merge pull request #99834 from kiroxas/passLengthToParseUTF8

Ensure `parse_utf8` has length of string passed in when available
This commit is contained in:
Thaddeus Crews 2024-12-03 14:41:06 -06:00
commit 1719f8ed3d
No known key found for this signature in database
GPG key ID: 62181B86FE9E5D84
10 changed files with 13 additions and 15 deletions

View file

@ -1537,7 +1537,7 @@ String EditorExportPlatformAndroid::_parse_string(const uint8_t *p_bytes, bool p
}
str8.write[len] = 0;
String str;
str.parse_utf8((const char *)str8.ptr());
str.parse_utf8((const char *)str8.ptr(), len);
return str;
} else {
String str;