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
|