]> source.dussan.org Git - poi.git/commit
Bug 66425: Avoid exceptions found via poi-fuzz
authorDominik Stadler <centic@apache.org>
Tue, 16 Jul 2024 05:26:42 +0000 (05:26 +0000)
committerDominik Stadler <centic@apache.org>
Tue, 16 Jul 2024 05:26:42 +0000 (05:26 +0000)
commit09fbfd5be45c7597cb1517a95e18b19429c47d58
treecd8a2fce3c07d9e4f189b38323ea3dd0653ec900
parent9456261cba0d0b0cb77e40f38fcc42c1dfd169b4
Bug 66425: Avoid exceptions found via poi-fuzz

Avoid a possible OutOfMemoryException with many child-records

This avoids having too many children in EscherRecords, the limit of
100_000 is arbitrarily chosen and can be adjusted if needed

Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=62924 and maybe others

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1919272 13f79535-47bb-0310-9956-ffa450edef68
poi-scratchpad/src/test/java/org/apache/poi/hslf/dev/BaseTestPPTIterating.java
poi-scratchpad/src/test/java/org/apache/poi/hslf/dev/TestPPTXMLDump.java
poi-scratchpad/src/test/java/org/apache/poi/hslf/dev/TestSlideShowDumper.java
poi/src/main/java/org/apache/poi/ddf/EscherContainerRecord.java
poi/src/main/java/org/apache/poi/ddf/EscherRecord.java
poi/src/main/java/org/apache/poi/ddf/UnknownEscherRecord.java
poi/src/test/java/org/apache/poi/ddf/TestEscherContainerRecord.java
poi/src/test/java/org/apache/poi/ddf/TestUnknownEscherRecord.java
test-data/slideshow/clusterfuzz-testcase-minimized-POIHSLFFuzzer-6614960949821440.ppt [new file with mode: 0644]
test-data/spreadsheet/stress.xls