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

StackOverflowError when creating a new JSONArray #372

Closed
agouz opened this issue Oct 30, 2017 · 2 comments · Fixed by #373
Closed

StackOverflowError when creating a new JSONArray #372

agouz opened this issue Oct 30, 2017 · 2 comments · Fixed by #373

Comments

@agouz
Copy link

agouz commented Oct 30, 2017

Hello Sean,
Thanks for this great library.
I have one issue when trying to initialise a JSONArray object and the input is simply "[". The jvm crashes with StackOverflowError.

simply try to run this: new JSONArray("[");

version used: 20171018

Thanks again :)

@johnjaylward
Copy link
Contributor

I can confirm this behavior

johnjaylward added a commit to johnjaylward/JSON-java that referenced this issue Oct 30, 2017
Corrects behavior of unclosed arrays
johnjaylward added a commit to johnjaylward/JSON-java that referenced this issue Oct 30, 2017
Corrects behavior of unclosed arrays
@stleary
Copy link
Owner

stleary commented Oct 31, 2017

Continued discussion in #373

@stleary stleary closed this as completed Oct 31, 2017
miguelfreitas93 referenced this issue in checkmarx-ts/checkmarx-github-action Jun 16, 2020
hewholived added a commit to hewholived/shift-java that referenced this issue Aug 17, 2022
Updating org.json dependency version to to mitigate stleary/JSON-java#372
YellowfinBI pushed a commit to YellowfinBI/JSON-java that referenced this issue Dec 8, 2022
Corrects behavior of unclosed arrays
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

Successfully merging a pull request may close this issue.

3 participants