Fix infinite loop in cJSON_Minify

This commit is contained in:
Max Bruckner
2019-05-16 20:01:02 +02:00
parent 465352fb99
commit 08d2bc766a
2 changed files with 9 additions and 0 deletions

View File

@ -2717,6 +2717,8 @@ CJSON_PUBLIC(void) cJSON_Minify(char *json)
else if (json[1] == '*')
{
skip_multiline_comment(&json);
} else {
json++;
}
break;