Dye357 created COMPRESS-330:
-------------------------------

             Summary: Tar UnArchive Fails when archive contains directory sizes 
which are non-zero.
                 Key: COMPRESS-330
                 URL: https://issues.apache.org/jira/browse/COMPRESS-330
             Project: Commons Compress
          Issue Type: Bug
          Components: Archivers
    Affects Versions: 1.10
         Environment: Java 1.8
            Reporter: Dye357
            Priority: Minor


Tar UnArchive Fails when archive contains directory sizes which are non-zero. I 
recently came across a set of files which failed to extract with 
commons-compress but I was able to successfully extract the files with GNU tar. 

The problem is TarArchiveInputStream.java gets the size of each entry in a tar 
archive to determine how many bytes to read ahead. Directories are always sized 
0 bytes, however its technically possible a tar archive contains a size for a 
directory. This causes the Input Stream to loose it's place and eventually 
results in an exception being thrown.




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

Reply via email to