This commit is contained in:
Jonas Möller 2023-07-07 19:49:05 +08:00 committed by GitHub
commit f91b3e8542
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -778,6 +778,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;