/[Apache-SVN]
ViewVC logotype

Revision 1919284


Jump to revision: Previous Next
Author: centic
Date: Tue Jul 16 13:26:16 2024 UTC (4 months ago)
Changed paths: 2
Log Message:
Bug 66425: Avoid exceptions found via poi-fuzz

Avoid a possible OutOfMemoryException with incorrect uniqueCount

The ReadOnlySharedStringsTable pre-allocates whatever is stated in uniqueCount.

As the uniqueCount may be an incorrect large number, we should cap it at some point
to avoid OOMs if corrupt files are processed.

Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=66137

Changed paths

Path Details
Directorypoi/trunk/poi-ooxml/src/main/java/org/apache/poi/xssf/eventusermodel/ReadOnlySharedStringsTable.java modified , text changed
Directorypoi/trunk/poi-ooxml/src/test/java/org/apache/poi/xssf/eventusermodel/TestReadOnlySharedStringsTable.java modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26