]> source.dussan.org Git - poi.git/commit
Bug 66425: Avoid exceptions found via poi-fuzz
authorDominik Stadler <centic@apache.org>
Thu, 18 Jul 2024 07:09:32 +0000 (07:09 +0000)
committerDominik Stadler <centic@apache.org>
Thu, 18 Jul 2024 07:09:32 +0000 (07:09 +0000)
commit0dea4a301c971c42ceaf0ed43cc6a3545026507e
tree7317833310a67bdf288fac2f901d364dbc600e65
parent0dac5680c31bc7b2014ce6b76cabf91adc39a908
Bug 66425: Avoid exceptions found via poi-fuzz

Processing formats uses regular expressions. Very complex formats
can recurse very deeply and thus can cause StackOVerflows depending
on the used stack-size.

In order to handle this a bit more gracefully, we now catch this
and report a better exception with details about the parsed
format and potential mitigation.

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

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1919342 13f79535-47bb-0310-9956-ffa450edef68
poi-integration/src/test/java/org/apache/poi/stress/TestAllFiles.java
poi-scratchpad/src/test/java/org/apache/poi/hssf/converter/TestExcelConverterSuite.java
poi/src/main/java/org/apache/poi/ss/format/CellFormat.java
poi/src/test/java/org/apache/poi/hssf/extractor/TestExcelExtractor.java
test-data/spreadsheet/clusterfuzz-testcase-minimized-POIHSSFFuzzer-4657005060816896.xls [new file with mode: 0644]
test-data/spreadsheet/stress.xls