diff options
author | Dominik Stadler <centic@apache.org> | 2023-08-06 14:57:47 +0000 |
---|---|---|
committer | Dominik Stadler <centic@apache.org> | 2023-08-06 14:57:47 +0000 |
commit | 1e8e95c3a659e88c3303f6247298c3b865229122 (patch) | |
tree | 9781b598b3f9c90c35189a52680b575f3fc7ec08 /test-data | |
parent | e5ff0e4eb6abd50e3cbd4a44a5477be94450d702 (diff) | |
download | poi-1e8e95c3a659e88c3303f6247298c3b865229122.tar.gz poi-1e8e95c3a659e88c3303f6247298c3b865229122.zip |
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
Diffstat (limited to 'test-data')
-rw-r--r-- | test-data/hsmf/clusterfuzz-testcase-minimized-POIHSMFFuzzer-4848576776503296.msg | bin | 0 -> 21504 bytes |
-rw-r--r-- | test-data/spreadsheet/stress.xls | bin | 39936 -> 39936 bytes |
2 files changed, 0 insertions, 0 deletions
diff --git a/test-data/hsmf/clusterfuzz-testcase-minimized-POIHSMFFuzzer-4848576776503296.msg b/test-data/hsmf/clusterfuzz-testcase-minimized-POIHSMFFuzzer-4848576776503296.msg Binary files differnew file mode 100644 index 0000000000..fc86ac083a --- /dev/null +++ b/test-data/hsmf/clusterfuzz-testcase-minimized-POIHSMFFuzzer-4848576776503296.msg diff --git a/test-data/spreadsheet/stress.xls b/test-data/spreadsheet/stress.xls Binary files differindex 1032a86a92..bd7aa3bcc7 100644 --- a/test-data/spreadsheet/stress.xls +++ b/test-data/spreadsheet/stress.xls |