aboutsummaryrefslogtreecommitdiffstats
path: root/poi-scratchpad
diff options
context:
space:
mode:
authorDominik Stadler <centic@apache.org>2023-10-07 22:12:43 +0000
committerDominik Stadler <centic@apache.org>2023-10-07 22:12:43 +0000
commit5cd4fa548843e89525e48d6180ab6f3c5eb9833e (patch)
tree94b27e1b7789dfdba4da0257fad530b13561a18e /poi-scratchpad
parenteb11f3324f6fc7f156839db24a85c21016f6003c (diff)
downloadpoi-5cd4fa548843e89525e48d6180ab6f3c5eb9833e.tar.gz
poi-5cd4fa548843e89525e48d6180ab6f3c5eb9833e.zip
Bug 66425: Avoid Exceptions found via oss-fuzz
We try to avoid throwing ClassCastExceptions, but it was possible to trigger one here with a specially crafted input-file Should fix https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=62795 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1912796 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poi-scratchpad')
-rw-r--r--poi-scratchpad/src/test/java/org/apache/poi/hssf/converter/TestExcelConverterSuite.java11
1 files changed, 6 insertions, 5 deletions
diff --git a/poi-scratchpad/src/test/java/org/apache/poi/hssf/converter/TestExcelConverterSuite.java b/poi-scratchpad/src/test/java/org/apache/poi/hssf/converter/TestExcelConverterSuite.java
index 927d54e88e..980e1298b8 100644
--- a/poi-scratchpad/src/test/java/org/apache/poi/hssf/converter/TestExcelConverterSuite.java
+++ b/poi-scratchpad/src/test/java/org/apache/poi/hssf/converter/TestExcelConverterSuite.java
@@ -38,15 +38,16 @@ import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.Arguments;
import org.junit.jupiter.params.provider.MethodSource;
-public class TestExcelConverterSuite
-{
+public class TestExcelConverterSuite {
/**
* YK: a quick hack to exclude failing documents from the suite.
*/
- @SuppressWarnings("ArraysAsListWithZeroOrOneArgument")
private static final List<String> failingFiles = Arrays.asList(
- /* not failing, but requires more memory */
- "ex45698-22488.xls" );
+ // not failing, but requires more memory
+ "ex45698-22488.xls",
+ // broken documents
+ "clusterfuzz-testcase-minimized-POIHSSFFuzzer-5436547081830400.xls"
+ );
public static Stream<Arguments> files() {
List<Arguments> files = new ArrayList<>();