]> source.dussan.org Git - poi.git/commit
Bug 66425: Add memory-safeguard in one more place
authorDominik Stadler <centic@apache.org>
Mon, 7 Aug 2023 20:35:59 +0000 (20:35 +0000)
committerDominik Stadler <centic@apache.org>
Mon, 7 Aug 2023 20:35:59 +0000 (20:35 +0000)
commit1b7613329e6258a85d548998f5dd36e58046a5b4
treeab44a94ff02fc5f643b719917a3540e89925f2e3
parent163ff25594bb2751ea2ea5e3df4f82fdf9219304
Bug 66425: Add memory-safeguard in one more place

We try to generally avoid overly large allocations in places
where arrays are allocated.

We add one more such check for pictures in HSLF.

We might need to increase the used value of 10MB if users report
larger files being used frequently.

Overriding this check via IOUtils is possible.

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1911525 13f79535-47bb-0310-9956-ffa450edef68
poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFSlideShowImpl.java
poi-scratchpad/src/test/java/org/apache/poi/hslf/dev/TestPPTXMLDump.java
poi-scratchpad/src/test/java/org/apache/poi/hslf/dev/TestSlideIdListing.java
test-data/slideshow/clusterfuzz-testcase-minimized-POIHSLFFuzzer-5306877435838464.ppt [new file with mode: 0644]
test-data/spreadsheet/stress.xls