Sami Sabir created COMPRESS-732:
-----------------------------------
Summary: Add a configurable maxEntries option to all archivers
Key: COMPRESS-732
URL: https://issues.apache.org/jira/browse/COMPRESS-732
Project: Commons Compress
Issue Type: Improvement
Reporter: Sami Sabir
ZipFile and TarFile load every entry when they are opened, and SevenZFile sizes
its entry table from the header, so a caller cannot cap the number of entries
before that memory is spent.
Proposal: AbstractArchiveBuilder.setMaxEntries(int), alongside
setMaxEntryNameLength(int), enforced by every reader (ZipFile, TarFile,
SevenZFile and all streaming readers). The default is Integer.MAX_VALUE, so
existing behavior is unchanged.
PR: https://github.com/apache/commons-compress/pull/840
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)