]> source.dussan.org Git - poi.git/commit
Bug 66425: Avoid exceptions found via poi-fuzz
authorDominik Stadler <centic@apache.org>
Tue, 3 Oct 2023 06:05:30 +0000 (06:05 +0000)
committerDominik Stadler <centic@apache.org>
Tue, 3 Oct 2023 06:05:30 +0000 (06:05 +0000)
commit360c05d9e3496cb6b49e73732615fd9daedf40aa
treea9ad8a1b361f4a46e96a4276e3f4c9181bdb237d
parent105966cc29113e90a47943bed1d9752e768353ea
Bug 66425: Avoid exceptions found via poi-fuzz

We try to avoid throwing NullPointerException, ClassCastExceptions
and StackOverflowException, but it was possible to trigger them

Also improve some exception messages

Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=62698
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=62606
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=62685

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912707 13f79535-47bb-0310-9956-ffa450edef68
poi-ooxml/src/main/java/org/apache/poi/xslf/usermodel/XSLFGraphicFrame.java
poi-ooxml/src/main/java/org/apache/poi/xslf/usermodel/XSLFTableCell.java
poi-ooxml/src/main/java/org/apache/poi/xssf/streaming/SXSSFSheet.java
poi-scratchpad/src/main/java/org/apache/poi/hdgf/streams/PointerContainingStream.java
poi/src/main/java/org/apache/poi/hssf/record/OldStringRecord.java