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
The following code fails with jackson-core version 2.4.3 :
@Test
public void test() throws JsonParseException, IOException {
StringBuilder input = new StringBuilder();
for (int i = 0; i < 500; i++) {
input.append(1);
}
JsonFactory factory = new JsonFactory();
JsonParser parser =
factory.createParser(new ByteArrayInputStream(input.toString().getBytes(Charset.forName("UTF-8"))));
parser.nextToken();
}
Result :
java.lang.ArrayIndexOutOfBoundsException: 200
at com.fasterxml.jackson.core.json.UTF8StreamJsonParser._parsePosNumber(UTF8StreamJsonParser.java:1216)
at com.fasterxml.jackson.core.json.UTF8StreamJsonParser._nextTokenNotInObject(UTF8StreamJsonParser.java:792)
at com.fasterxml.jackson.core.json.UTF8StreamJsonParser.nextToken(UTF8StreamJsonParser.java:690)
The following code fails with
jackson-core
version2.4.3
:Result :
This looks related to #78...
The text was updated successfully, but these errors were encountered: