Skip to content

Commit 3ea7cda

Browse files
committed
Backport IonParser.getDecimalValue() fix from master
1 parent 18b9655 commit 3ea7cda

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ion/src/main/java/com/fasterxml/jackson/dataformat/ion/IonParser.java

+4-2
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,8 @@ public BigInteger getBigIntegerValue() throws IOException {
331331
_verifyIsNumberToken();
332332
try {
333333
return _reader.bigIntegerValue();
334-
} catch (IonException e) {
334+
} catch (IonException | ArrayIndexOutOfBoundsException e) {
335+
// 01-Jan-2024, tatu: OSS-Fuzz#65062 points to AIOOBE ^^^
335336
return _reportCorruptNumber(e);
336337
}
337338
}
@@ -342,7 +343,8 @@ public BigDecimal getDecimalValue() throws IOException {
342343
_verifyIsNumberToken();
343344
try {
344345
return _reader.bigDecimalValue();
345-
} catch (IonException e) {
346+
} catch (IonException | ArrayIndexOutOfBoundsException e) {
347+
// 01-Jan-2024, tatu: OSS-Fuzz#65062 points to AIOOBE ^^^
346348
return _reportCorruptNumber(e);
347349
}
348350
}

0 commit comments

Comments
 (0)