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 was doing some fuzz testing and came across an ArrayIndexOutOfBoundsException. It seems like it is related to /issues/382 in that it has introduced a bug which if the byte[] is a %3 it will still produce an ArrayIndexOutOfBoundsException.
java.lang.ArrayIndexOutOfBoundsException: 7
at com.fasterxml.jackson.core.io.UTF32Reader.read(UTF32Reader.java:145)
at com.fasterxml.jackson.core.json.ReaderBasedJsonParser._loadMore(ReaderBasedJsonParser.java:229)
at com.fasterxml.jackson.core.json.ReaderBasedJsonParser._skipWSOrEnd(ReaderBasedJsonParser.java:2316)
at com.fasterxml.jackson.core.json.ReaderBasedJsonParser.nextToken(ReaderBasedJsonParser.java:632)
at com.fasterxml.jackson.core.read.UTF32ParseTest.testInvalidInput(UTF32ParseTest.java:61)
Just for clarity the following test case produces the correct JsonParseExecption
com.fasterxml.jackson.core.JsonParseException: Illegal character ((CTRL-CHAR, code 0)): only regular white space (\r, \n, \t) is allowed between tokens
at [Source: (byte[])" "; line: 1, column: 2]
at com.fasterxml.jackson.core.JsonParser._constructError(JsonParser.java:1666)
at com.fasterxml.jackson.core.base.ParserMinimalBase._reportError(ParserMinimalBase.java:674)
at com.fasterxml.jackson.core.base.ParserMinimalBase._throwInvalidSpace(ParserMinimalBase.java:625)
at com.fasterxml.jackson.core.json.ReaderBasedJsonParser._skipWSOrEnd(ReaderBasedJsonParser.java:2335)
at com.fasterxml.jackson.core.json.ReaderBasedJsonParser.nextToken(ReaderBasedJsonParser.java:632)
at com.fasterxml.jackson.core.read.UTF32ParseTest.testInvalidInput(UTF32ParseTest.java:61)
The text was updated successfully, but these errors were encountered:
I was doing some fuzz testing and came across an
ArrayIndexOutOfBoundsException
. It seems like it is related to /issues/382 in that it has introduced a bug which if the byte[] is a %3 it will still produce anArrayIndexOutOfBoundsException
.Simple test case as follows:
Stack trace:
Just for clarity the following test case produces the correct
JsonParseExecption
Stack trace:
The text was updated successfully, but these errors were encountered: