[ 
https://issues.apache.org/jira/browse/COMPRESS-262?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13896467#comment-13896467
 ] 

Stefan Bodewig commented on COMPRESS-262:
-----------------------------------------

In the example tar that you've now removed the user-id of the second entry 
contains "62410554" - this is supposed a NULL-terminated string representing an 
octal number <= 07777777 - obviously your example is not NULL-terminated.  Can 
you tell us which tar implementation has created the archive?

GNU tar is willing to read the archive so this likely is yet another tar 
dialect for big numbers that we need to support in some way.

> Can't get next entry for tar file.
> ----------------------------------
>
>                 Key: COMPRESS-262
>                 URL: https://issues.apache.org/jira/browse/COMPRESS-262
>             Project: Commons Compress
>          Issue Type: Bug
>          Components: Compressors
>    Affects Versions: 1.4.1, 1.5, 1.6, 1.7
>            Reporter: goodluck
>            Priority: Critical
>              Labels: extractor, tar
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> Caused by: java.lang.IllegalArgumentException: Invalid byte 52 at offset 7 in 
> '62410554' len=8
>       at 
> org.apache.commons.compress.archivers.tar.TarUtils.parseOctal(TarUtils.java:130)
>       at 
> org.apache.commons.compress.archivers.tar.TarUtils.parseOctalOrBinary(TarUtils.java:175)
>       at 
> org.apache.commons.compress.archivers.tar.TarArchiveEntry.parseTarHeader(TarArchiveEntry.java:953)
>       at 
> org.apache.commons.compress.archivers.tar.TarArchiveEntry.parseTarHeader(TarArchiveEntry.java:940)
>       at 
> org.apache.commons.compress.archivers.tar.TarArchiveEntry.<init>(TarArchiveEntry.java:324)
>       at 
> org.apache.commons.compress.archivers.tar.TarArchiveInputStream.getNextTarEntry(TarArchiveInputStream.java:247)
>       ... 5 more



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to