[COMPRESS-386] Consider adding sanity check to maxCodeSize in ZCompressorInputStream (original) (raw)

Log inSkip to main contentSkip to sidebar

ASF Jira

Uploaded image for project: 'Commons Compress'

  1. Commons Compress
  2. COMPRESS-386

XMLWordPrintableJSON

Details

Description

On TIKA-1631, several users pointed out that a bad value for the 4th byte of an apparently Z compressed file can lead to an OOM.

If possible, it would be great to parameterize ZCompressorInputStream to set a threshold. Or, if this should be kept out of COMPRESS, is there some way that we could load a threshold-checking subclass of ZCompressorInputStream via the CompressorStreamFactory?

Attachments

relates to

Bug - A problem which impairs or prevents the functions of the product. COMPRESS-382 OutOfMemoryError from CompressorStreamFactory

Bug - A problem which impairs or prevents the functions of the product. TIKA-1631 OutOfMemoryException in ZipContainerDetector

Activity

People

Votes:

0 Vote for this issue

Watchers:

3 Start watching this issue

Dates

Created:

14/Apr/17 15:37

Updated:

25/Apr/17 18:46

Resolved:

25/Apr/17 18:46