From: Tim Allison Date: Tue, 14 Aug 2018 20:03:14 +0000 (+0000) Subject: improve sax reading X-Git-Tag: REL_4_0_0_FINAL~42 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=524b9255058a26c1de0f18cd5197017a0654579b;p=poi.git improve sax reading git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1838048 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/ooxml/java/org/apache/poi/ooxml/util/SAXHelper.java b/src/ooxml/java/org/apache/poi/ooxml/util/SAXHelper.java index f3b1b7f6a5..38b1708159 100644 --- a/src/ooxml/java/org/apache/poi/ooxml/util/SAXHelper.java +++ b/src/ooxml/java/org/apache/poi/ooxml/util/SAXHelper.java @@ -113,7 +113,7 @@ public final class SAXHelper { try { Object mgr = Class.forName(securityManagerClassName).newInstance(); Method setLimit = mgr.getClass().getMethod("setEntityExpansionLimit", Integer.TYPE); - setLimit.invoke(mgr, 4096); + setLimit.invoke(mgr, 0); xmlReader.setProperty(POIXMLConstants.PROPERTY_SECURITY_MANAGER, mgr); // Stop once one can be setup without error return;