-
-
Notifications
You must be signed in to change notification settings - Fork 799
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
ArrayOutOfBoundException
at WriterBasedJsonGenerator.writeString(Reader, int)
#702
Comments
Sounds like a flaw to fix, yes. Do you happen to have a reproduction to use as a unit test? It would be great to verify the fix. |
it's a little bit tricky to get the error |
Thank you @jeffreye! Yes, buffer edge conditions like this likely is are tricky to reproduce. I appreciate your help. I'll add this to my TODO list: it may take a while to get there but definitely want to fix the issue. |
Oh my. That method is.... all kinds of wrong. Bounds checks are incorrect in multiple places. |
ArrayOutOfBoundException
at WriterBasedJsonGenerator.writeString(Reader, int)
I am invoking
writeString(myReader, -1)
on a JsonGenerator and get this error sometimes.jackson-core/src/main/java/com/fasterxml/jackson/core/json/WriterBasedJsonGenerator.java
Lines 462 to 470 in 3c386bf
Basically, we need to add this case to the line
The text was updated successfully, but these errors were encountered: