-
-
Notifications
You must be signed in to change notification settings - Fork 798
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parsing JSON with ALLOW_MISSING_VALUE
enabled results in endless stream of VALUE_NULL
tokens
#616
Comments
Thank you for reporting this. Which version is this verified with? |
I was originally using 2.10.1, but I just tested this on 2.11.0 and it's still occurring. |
Added failing test. |
One quick note: commas should not really be accepted as separators in root level so just realizing that this needs to result in parsing error. But bit worried that someone somewhere might already be relying on such behavior... |
ALLOW_MISSING_VALUE
enabled results in endless stream of VALUE_NULL
tokens
Fixed: will now report parsing error for root-level commas, which will also prevent infinite sequences of |
This code results in an infinite loop. Only happens with ALLOW_MISSING_VALUES enabled. Treats the unexpected comma as a missing value or something, replacing it with NULL, but on the top-level this results in an infinite loop where nextToken() will return VALUE_NULL forever.
Also happens on inputs including:
The text was updated successfully, but these errors were encountered: