Skip to content
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

JsonParserImpl ObjectContext&ArrayContext skip() missing EOF check #23

Open
likailong87 opened this issue Jun 11, 2020 · 1 comment
Open

Comments

@likailong87
Copy link

Invalid json cause infinite loop.

JsonParser parser = Json.createParser(new StringReader("["));
// START_ARRAY
parser.next();
parser.skipArray();
// never reach
JsonParser parser = Json.createParser(new StringReader("{"));
// START_OBJECT
parser.next();
parser.skipObject();
// never reach
@leadpony
Copy link

leadpony commented Nov 1, 2020

This is the same problem reported by me in the PR jakartaee/jsonp-api#147 .

@lukasj lukasj transferred this issue from jakartaee/jsonp-api Jun 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants