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
I found that when my source is "slow", buffer grows infinitely till it throws java.lang.NegativeArraySizeException. Spent quite some time trying to find minimal reproducible example (it was failing on my 8GB json I didnt really want to post here :D).
If you run this you will get the exception before parsing whole string. If I observe byte[] newBuf = new byte[iter.buf.length * 2]; it growths even if it doesnt need to.
This issue is probably duplicate of this #124. Using version 0.9.19.
The text was updated successfully, but these errors were encountered:
svobol13
added a commit
to svobol13/json-iter-java
that referenced
this issue
Jun 15, 2019
I found that when my source is "slow", buffer grows infinitely till it throws
java.lang.NegativeArraySizeException
. Spent quite some time trying to find minimal reproducible example (it was failing on my 8GB json I didnt really want to post here :D).If you run this you will get the exception before parsing whole string. If I observe
byte[] newBuf = new byte[iter.buf.length * 2];
it growths even if it doesnt need to.This issue is probably duplicate of this #124. Using version 0.9.19.
The text was updated successfully, but these errors were encountered: