]> source.dussan.org Git - poi.git/commit
Bug 66425: Avoid a ClassCastException found via oss-fuzz
authorDominik Stadler <centic@apache.org>
Sun, 6 Aug 2023 14:57:47 +0000 (14:57 +0000)
committerDominik Stadler <centic@apache.org>
Sun, 6 Aug 2023 14:57:47 +0000 (14:57 +0000)
commit1e8e95c3a659e88c3303f6247298c3b865229122
tree9781b598b3f9c90c35189a52680b575f3fc7ec08
parente5ff0e4eb6abd50e3cbd4a44a5477be94450d702
Bug 66425: Avoid a ClassCastException found via oss-fuzz

We try to avoid throwing ClassCastException, but it was possible
to trigger one here with a specially crafted input-file

Also rework test a bit to use try-with-resources and proper formatting

Should fix https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=61221

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911494 13f79535-47bb-0310-9956-ffa450edef68
poi-scratchpad/src/main/java/org/apache/poi/hsmf/datatypes/Chunks.java
poi-scratchpad/src/test/java/org/apache/poi/hsmf/parsers/TestPOIFSChunkParser.java
test-data/hsmf/clusterfuzz-testcase-minimized-POIHSMFFuzzer-4848576776503296.msg [new file with mode: 0644]
test-data/spreadsheet/stress.xls