]> source.dussan.org Git - poi.git/commit
Bug 66425: Avoid exceptions found via poi-fuzz
authorDominik Stadler <centic@apache.org>
Wed, 20 Sep 2023 14:55:19 +0000 (14:55 +0000)
committerDominik Stadler <centic@apache.org>
Wed, 20 Sep 2023 14:55:19 +0000 (14:55 +0000)
commitce919673c4e935e8c756c91938f973d5c9a23ddb
treeda3537d17053417985c3534e2aa530d5f8ca06c1
parent857b96b2d3ec547fe2a4bc707ed6eb97bcabd2f8
Bug 66425: Avoid exceptions found via poi-fuzz

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

Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=62530 and https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=62491

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912433 13f79535-47bb-0310-9956-ffa450edef68
12 files changed:
poi-scratchpad/src/main/java/org/apache/poi/hwpf/converter/WordToTextConverter.java
poi-scratchpad/src/test/java/org/apache/poi/hslf/dev/BaseTestPPTIterating.java
poi-scratchpad/src/test/java/org/apache/poi/hslf/dev/TestPPTXMLDump.java
poi/src/main/java/org/apache/poi/hssf/record/CFRule12Record.java
poi/src/main/java/org/apache/poi/poifs/crypt/agile/PasswordKeyEncryptor.java
poi/src/test/java/org/apache/poi/hssf/dev/TestBiffViewer.java
poi/src/test/java/org/apache/poi/hssf/dev/TestFormulaViewer.java
poi/src/test/java/org/apache/poi/hssf/dev/TestRecordLister.java
poi/src/test/java/org/apache/poi/hssf/usermodel/TestHSSFWorkbook.java
test-data/slideshow/clusterfuzz-testcase-minimized-POIHSLFFuzzer-5231088823566336.ppt [new file with mode: 0644]
test-data/spreadsheet/clusterfuzz-testcase-minimized-POIHSSFFuzzer-5786329142919168.xls [new file with mode: 0644]
test-data/spreadsheet/stress.xls