Skip to content

Commit

Permalink
Another additional catch wrt IonParser, OSS-Fuzz 65557
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Jan 6, 2024
1 parent 955e711 commit 0e2a81a
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -336,8 +336,9 @@ public BigInteger getBigIntegerValue() throws IOException {
private BigInteger _getBigIntegerValue() throws IOException {
try {
return _reader.bigIntegerValue();
} catch (IonException | ArrayIndexOutOfBoundsException e) {
// 01-Jan-2024, tatu: OSS-Fuzz#65062 points to AIOOBE ^^^
} catch (IonException
// 01-Jan-2024, tatu: OSS-Fuzz#65062 points to AIOOBE:
| ArrayIndexOutOfBoundsException e) {
return _reportCorruptNumber(e);
}
}
Expand All @@ -353,8 +354,11 @@ public BigDecimal getDecimalValue() throws IOException {
private BigDecimal _getBigDecimalValue() throws IOException {
try {
return _reader.bigDecimalValue();
} catch (IonException | ArrayIndexOutOfBoundsException e) {
// 01-Jan-2024, tatu: OSS-Fuzz#65062 points to AIOOBE ^^^
} catch (IonException
// 01-Jan-2024, tatu: OSS-Fuzz#65062 points to AIOOBE:
| ArrayIndexOutOfBoundsException
// 05-Jan-2024, tatu: OSS-Fuzz#65557 points to NPE:
| NullPointerException e) {
return _reportCorruptNumber(e);
}
}
Expand Down

0 comments on commit 0e2a81a

Please sign in to comment.