[
https://issues.apache.org/jira/browse/COMPRESS-385?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15969130#comment-15969130
]
ASF GitHub Bot commented on COMPRESS-385:
-----------------------------------------
GitHub user tballison opened a pull request:
https://github.com/apache/commons-compress/pull/18
COMPRESS-385
add detect() to CompressorStreamFactory
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/tballison/commons-compress COMPRESS-385
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/commons-compress/pull/18.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #18
----
commit 0e5592509b4b8fdbe28e08118e9ee0b57f20af3f
Author: tballison <[email protected]>
Date: 2017-04-14T15:18:19Z
COMPRESS-385, first draft
----
> Add detect() to CompressorStreamFactory
> ---------------------------------------
>
> Key: COMPRESS-385
> URL: https://issues.apache.org/jira/browse/COMPRESS-385
> Project: Commons Compress
> Issue Type: Improvement
> Reporter: Tim Allison
> Priority: Minor
>
> On TIKA-1631, several users have requested that we try to avoid an OOM when a
> corrupted Z file is "detected" by CompressorStreamFactory.
> In Tika, for detection, we're creating the stream via CompressorStreamFactory
> and then "detecting" based on what stream was created. Given that there can
> be some overhead in creating the stream and that there can be an OOM for a
> corrupt Z file, it would be great to add a {{detect(InputStream is)}} option
> in CompressorStreamFactory.
> PR on way.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)