Add safe checks in parsing compound types.
Compound types (object and array) call ParseString() and ParseValue() for key and values. If there is parse errors inside those calls, it should stop continue parsing. Otherwise, it may be possible to continue parsing and calling handler incorrectly. For example, in ["a\u,","b"], \u generates an error (it should follow but 4 hex digits), the parser continues to treat the first comma as element separator, and treat "," as a JSON string and call the handler. It may be unacceptable in the application code.
Showing
Please
register
or
sign in
to comment