aboutsummaryrefslogtreecommitdiffstats
path: root/poi-integration
diff options
context:
space:
mode:
authorDominik Stadler <centic@apache.org>2024-07-15 05:41:04 +0000
committerDominik Stadler <centic@apache.org>2024-07-15 05:41:04 +0000
commite2044c958b2103c3534e5211fb4ed452c3bb758a (patch)
tree0f6904c2129f19ba9cf544f586450addc88aa370 /poi-integration
parent5085e3d1b2af1ac20e6158b0a00797a0d3b6f2ba (diff)
downloadpoi-e2044c958b2103c3534e5211fb4ed452c3bb758a.tar.gz
poi-e2044c958b2103c3534e5211fb4ed452c3bb758a.zip
Bug 66425: Avoid exceptions found via poi-fuzz
Prevent too much memory usage Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=67413 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1919237 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poi-integration')
-rw-r--r--poi-integration/src/test/java/org/apache/poi/stress/TestAllFiles.java1
-rw-r--r--poi-integration/src/test/resources/log4j2-test.xml1
2 files changed, 2 insertions, 0 deletions
diff --git a/poi-integration/src/test/java/org/apache/poi/stress/TestAllFiles.java b/poi-integration/src/test/java/org/apache/poi/stress/TestAllFiles.java
index e54f7da1d6..73b27a979e 100644
--- a/poi-integration/src/test/java/org/apache/poi/stress/TestAllFiles.java
+++ b/poi-integration/src/test/java/org/apache/poi/stress/TestAllFiles.java
@@ -138,6 +138,7 @@ public class TestAllFiles {
"spreadsheet/clusterfuzz-testcase-minimized-POIXSSFFuzzer-5089447305609216.xlsx",
"spreadsheet/clusterfuzz-testcase-minimized-POIXSSFFuzzer-5089447305609216.xlsx",
"spreadsheet/clusterfuzz-testcase-minimized-POIHSSFFuzzer-4651309315719168.xls",
+ "document/clusterfuzz-testcase-POIHWPFFuzzer-5696094627495936.doc",
});
private static final Set<String> EXPECTED_FAILURES = StressTestUtils.unmodifiableHashSet(
diff --git a/poi-integration/src/test/resources/log4j2-test.xml b/poi-integration/src/test/resources/log4j2-test.xml
index 3cbbac8cea..43fff138fa 100644
--- a/poi-integration/src/test/resources/log4j2-test.xml
+++ b/poi-integration/src/test/resources/log4j2-test.xml
@@ -37,6 +37,7 @@
<Logger name="org.apache.poi.xssf.usermodel.XSSFWorkbook" level="ERROR" />
<Logger name="org.apache.poi.hslf.usermodel.HSLFGroupShape" level="WARN" />
<Logger name="org.apache.poi.hslf.record.Record" level="ERROR" />
+ <Logger name="org.apache.poi.hwpf.sprm.ParagraphSprmUncompressor" level="FATAL" />
<!-- Change to DEBUG or another level to get log output -->
<Root level="ERROR">