FS-8160: properly handle malformed json when parsing json with \u at the end of a json string

This commit is contained in:
Michael Jerris 2015-09-14 17:56:37 -04:00
parent 12b2880b06
commit 3c57190b79
3 changed files with 3 additions and 3 deletions

View File

@ -204,7 +204,7 @@ static const char *parse_string(cJSON *item,const char *str)
break;
default: *ptr2++=*ptr; break;
}
ptr++;
if (*ptr) ptr++;
}
}
*ptr2=0;

View File

@ -204,7 +204,7 @@ static const char *parse_string(cJSON *item,const char *str)
break;
default: *ptr2++=*ptr; break;
}
ptr++;
if (*ptr) ptr++;
}
}
*ptr2=0;

View File

@ -204,7 +204,7 @@ static const char *parse_string(cJSON *item,const char *str)
break;
default: *ptr2++=*ptr; break;
}
ptr++;
if (*ptr) ptr++;
}
}
*ptr2=0;