From ac58e2f5f459d305f87ec2323228947877de11ae Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Sat, 19 Feb 2022 22:41:22 +0000 Subject: [PATCH] add extra max size config git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898239 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/poi/openxml4j/util/ZipArchiveFakeEntry.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/poi-ooxml/src/main/java/org/apache/poi/openxml4j/util/ZipArchiveFakeEntry.java b/poi-ooxml/src/main/java/org/apache/poi/openxml4j/util/ZipArchiveFakeEntry.java index 807159ba0d..34b28ab662 100644 --- a/poi-ooxml/src/main/java/org/apache/poi/openxml4j/util/ZipArchiveFakeEntry.java +++ b/poi-ooxml/src/main/java/org/apache/poi/openxml4j/util/ZipArchiveFakeEntry.java @@ -78,7 +78,8 @@ import org.apache.poi.util.TempFile; } // Grab the de-compressed contents for later - data = (entrySize == -1) ? IOUtils.toByteArray(inp) : IOUtils.toByteArray(inp, (int)entrySize, MAX_ENTRY_SIZE); + data = (entrySize == -1) ? IOUtils.toByteArrayWithMaxLength(inp, getMaxEntrySize()) : + IOUtils.toByteArray(inp, (int)entrySize, getMaxEntrySize()); } } -- 2.39.5