]> source.dussan.org Git - poi.git/commitdiff
improve sax reading
authorTim Allison <tallison@apache.org>
Tue, 14 Aug 2018 20:03:14 +0000 (20:03 +0000)
committerTim Allison <tallison@apache.org>
Tue, 14 Aug 2018 20:03:14 +0000 (20:03 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1838048 13f79535-47bb-0310-9956-ffa450edef68

src/ooxml/java/org/apache/poi/ooxml/util/SAXHelper.java

index f3b1b7f6a5f1aa4d8806dd2282c7642704395b2f..38b17081591a3b40cac6879f5e0d44060f7f3e28 100644 (file)
@@ -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;