1
0
mirror of https://github.com/DaveGamble/cJSON synced 2025-04-16 20:17:37 +00:00
This commit is contained in:
Jonas Möller 2024-10-03 14:47:51 +03:00 committed by GitHub
commit ed523a8a26
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -797,6 +797,11 @@ static cJSON_bool parse_string(cJSON * const item, parse_buffer * const input_bu
unsigned char *output = NULL;
/* not a string */
if (!can_access_at_index(input_buffer, 0))
{
goto fail;
}
if (buffer_at_offset(input_buffer)[0] != '\"')
{
goto fail;