XML parser entity limit reached while handling large PDB.
See original GitHub issueHi,
I’m currently trying to apply a 500MB PDB file to a 38MB exe (yes I’m well aware its massive) I’m running into issues with the XML parser object limit. (System memory isn’t an issue, the system has 32GB ram and I’m running ghidra with a 8GB ram limit, of which around 4.5GB is being used.
Problem parsing or applying PDB information: org.xml.sax.SAXParseException; lineNumber: 14565172; columnNumber: 328; JAXP00010004: The accumulated size of entities is "50,000,001" that exceeded the "50,000,000" limit set by "FEATURE_SECURE_PROCESSING".
I can give the stack output etc if that helps.
I gather this is something to do with the XML library to prevent denial of service attacks or similar. I have tried disabling FEATURE_SECURE_PROCESSING in the XmlUtilities class by calling the setFeature
method with false
but to no avail.
It gave me the error while applying symbols, and yet it seems to have continued applying functions. Does anyone have any ideas? Thanks in advance.
Issue Analytics
- State:
- Created 4 years ago
- Comments:16 (8 by maintainers)
Work-around, as suggested above, works.
I ran a couple of more times, to find out that the key variable for me is:
VMARGS=-Djdk.xml.totalEntitySizeLimit=50000000
where I adjusted the 50000000 (default) to a larger value.VMARGS=-DtotalEntitySizeLimit=some_limit
by itself, it did not help.VMARGS=-DentityExpansionLimit=some_limit
did not seem to be needed.