From 5baa52f86e712366ac6d0cd66c636a8ee9c15ee5 Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Fri, 5 Oct 2018 20:17:39 +0000 Subject: [PATCH] small adjustments to byte sizes in TestPackage zip-bomb tests to try fix test that fails on old-xerces harness git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1842980 13f79535-47bb-0310-9956-ffa450edef68 --- .../testcases/org/apache/poi/openxml4j/opc/TestPackage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ooxml/testcases/org/apache/poi/openxml4j/opc/TestPackage.java b/src/ooxml/testcases/org/apache/poi/openxml4j/opc/TestPackage.java index 94a965832..66a763051 100644 --- a/src/ooxml/testcases/org/apache/poi/openxml4j/opc/TestPackage.java +++ b/src/ooxml/testcases/org/apache/poi/openxml4j/opc/TestPackage.java @@ -907,7 +907,7 @@ public final class TestPackage { getZipStatsAndConsume((max_size, min_ratio) -> { // check max entry size ouf of bounds ZipSecureFile.setMinInflateRatio(min_ratio-0.002); - ZipSecureFile.setMaxEntrySize(max_size-100); + ZipSecureFile.setMaxEntrySize(max_size-200); }); }