Skip to content

Commit 041d619

Browse files
committed
And one more IonParser/NPE courtesy of OSS-Fuzz
1 parent 29666f1 commit 041d619

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,8 +541,11 @@ public Object getEmbeddedObject() throws IOException {
541541
if (_currToken == JsonToken.VALUE_EMBEDDED_OBJECT) {
542542
switch (_reader.getType()) {
543543
case TIMESTAMP:
544-
try {
544+
try {
545545
return _reader.timestampValue();
546+
} catch (NullPointerException e) {
547+
// 07-Jan-2024, tatu: OSS-Fuzz suggests this occurs too so
548+
return _reportCorruptContent(e);
546549
} catch (IllegalArgumentException e) {
547550
throw _constructError(String.format(
548551
"Invalid embedded TIMESTAMP value, problem: %s", e.getMessage()),

0 commit comments

Comments
 (0)