Title: Init a JSONArray with "[" will induce StackOverflowError in version 20171018. · Issue #388 · stleary/JSON-java · GitHub
Open Graph Title: Init a JSONArray with "[" will induce StackOverflowError in version 20171018. · Issue #388 · stleary/JSON-java
X Title: Init a JSONArray with "[" will induce StackOverflowError in version 20171018. · Issue #388 · stleary/JSON-java
Description: When I upgrade org.json from 20170516 to 20171018, my unit test begin to failed, the test case shows if I init a JSONArray with "[", it will induce StackOverflowError. new JSONArray("["); The call stack shows a infinite loop between JSON...
Open Graph Description: When I upgrade org.json from 20170516 to 20171018, my unit test begin to failed, the test case shows if I init a JSONArray with "[", it will induce StackOverflowError. new JSONArray("["); The call ...
X Description: When I upgrade org.json from 20170516 to 20171018, my unit test begin to failed, the test case shows if I init a JSONArray with "[", it will induce StackOverflowError. new JSONArray("...
Opengraph URL: https://github.com/stleary/JSON-java/issues/388
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Init a JSONArray with \"[\" will induce StackOverflowError in version 20171018.","articleBody":"When I upgrade org.json from 20170516 to 20171018, my unit test begin to failed, the test case shows if I init a JSONArray with \"[\", it will induce StackOverflowError.\r\n\r\n```java\r\nnew JSONArray(\"[\");\r\n```\r\n\r\nThe call stack shows a infinite loop between JSONTokener.nextValue and JSONArray.\\\u003cinit\\\u003e\r\n\r\n```text\r\nException in thread \"main\" java.lang.StackOverflowError\r\n\tat org.json.JSONTokener.back(JSONTokener.java:109)\r\n\tat org.json.JSONTokener.nextValue(JSONTokener.java:433)\r\n\tat org.json.JSONArray.\u003cinit\u003e(JSONArray.java:118)\r\n\tat org.json.JSONTokener.nextValue(JSONTokener.java:434)\r\n\tat org.json.JSONArray.\u003cinit\u003e(JSONArray.java:118)\r\n\tat org.json.JSONTokener.nextValue(JSONTokener.java:434)\r\n\tat org.json.JSONArray.\u003cinit\u003e(JSONArray.java:118)\r\n\tat org.json.JSONTokener.nextValue(JSONTokener.java:434)\r\n\tat org.json.JSONArray.\u003cinit\u003e(JSONArray.java:118)\r\n\tat org.json.JSONTokener.nextValue(JSONTokener.java:434)\r\n\tat org.json.JSONArray.\u003cinit\u003e(JSONArray.java:118)\r\n ... skip\r\n```","author":{"url":"https://github.com/yaosiang","@type":"Person","name":"yaosiang"},"datePublished":"2017-12-18T05:43:47.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/388/JSON-java/issues/388"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:08b73729-3a98-9c6e-d21b-9aaf4e4cc27a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 80FA:3C6F7B:5C69745:7B4B0A1:6A5DDF6E |
| html-safe-nonce | 482e81feefec6ac531a98bbd0779a7420d846cc1cec349b7e617d2558e3b2229 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MEZBOjNDNkY3Qjo1QzY5NzQ1OjdCNEIwQTE6NkE1RERGNkUiLCJ2aXNpdG9yX2lkIjoiNjI4MDQ5NjE5MDEzNzk1MDA2MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 0b2f2b8b4e777a0c9ac489769e79adcd8c8a655a1f57956bc2ea3ce3303710ee |
| hovercard-subject-tag | issue:282770167 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/stleary/JSON-java/388/issue_layout |
| twitter:image | https://opengraph.githubassets.com/088e74547c0521d9c9fb1f100a278df53465668c1ec8ae6881bf4d641ea02d8a/stleary/JSON-java/issues/388 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/088e74547c0521d9c9fb1f100a278df53465668c1ec8ae6881bf4d641ea02d8a/stleary/JSON-java/issues/388 |
| og:image:alt | When I upgrade org.json from 20170516 to 20171018, my unit test begin to failed, the test case shows if I init a JSONArray with "[", it will induce StackOverflowError. new JSONArray("["); The call ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | yaosiang |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| turbo-cache-control | no-preview |
| go-import | github.com/stleary/JSON-java git https://github.com/stleary/JSON-java.git |
| octolytics-dimension-user_id | 5107558 |
| octolytics-dimension-user_login | stleary |
| octolytics-dimension-repository_id | 1187853 |
| octolytics-dimension-repository_nwo | stleary/JSON-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1187853 |
| octolytics-dimension-repository_network_root_nwo | stleary/JSON-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width