You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
newJSONArray("[");
The call stack shows a infinite loop between JSONTokener.nextValue and JSONArray.<init>
Exception in thread "main" java.lang.StackOverflowError
at org.json.JSONTokener.back(JSONTokener.java:109)
at org.json.JSONTokener.nextValue(JSONTokener.java:433)
at org.json.JSONArray.<init>(JSONArray.java:118)
at org.json.JSONTokener.nextValue(JSONTokener.java:434)
at org.json.JSONArray.<init>(JSONArray.java:118)
at org.json.JSONTokener.nextValue(JSONTokener.java:434)
at org.json.JSONArray.<init>(JSONArray.java:118)
at org.json.JSONTokener.nextValue(JSONTokener.java:434)
at org.json.JSONArray.<init>(JSONArray.java:118)
at org.json.JSONTokener.nextValue(JSONTokener.java:434)
at org.json.JSONArray.<init>(JSONArray.java:118)
... skip
The text was updated successfully, but these errors were encountered:
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.
The call stack shows a infinite loop between JSONTokener.nextValue and JSONArray.<init>
The text was updated successfully, but these errors were encountered: