Nick Burch created COMPRESS-316:
-----------------------------------

             Summary: CompressorStreamFactory doesn't handle deflate streams 
with a zlib header
                 Key: COMPRESS-316
                 URL: https://issues.apache.org/jira/browse/COMPRESS-316
             Project: Commons Compress
          Issue Type: Bug
          Components: Compressors
    Affects Versions: 1.9
            Reporter: Nick Burch


If you take a zlib / deflate compressed file, with the zlib header (eg the test 
file bla.tar.deflatez) and pass it to 
CompressorStreamFactory.createCompressorInputStream, it won't be detected and 
you'll get a CompressorException("No Compressor found for the stream 
signature.")

While detecting header-less zlib files is probably too tricky to manage, those 
with the header ought to be possible to spot and handle



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to