git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1838048 13f79535-47bb-0310-9956-ffa450edef68tags/REL_4_0_0_FINAL
@@ -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; |