jackson-core icon indicating copy to clipboard operation
jackson-core copied to clipboard

`ArrayIndexOutOfBoundsException` for `UTF8DataInputJsonParser` for particularly long integer numbers (256k+ digits)

Open cowtowncoder opened this issue 5 years ago • 0 comments

Looks like no bounds check are verified when buffering digits of integer numbers by UTF8DataInputJsonParser, and thereby long enough integer numbers (longer than current empty buffer size, or at very least, longer than maximum segment which is 256k characters) will hit buffer boundary and throw exception.

Looking at other implements UTF8StreamJsonParser and others handle this better.

cowtowncoder avatar Oct 20 '18 21:10 cowtowncoder