commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeremy Gustie (JIRA)" <j...@apache.org>
Subject [jira] [Created] (COMPRESS-335) TAR checksum fails when checksum is right aligned
Date Fri, 05 Feb 2016 19:38:39 GMT
Jeremy Gustie created COMPRESS-335:
--------------------------------------

             Summary: TAR checksum fails when checksum is right aligned
                 Key: COMPRESS-335
                 URL: https://issues.apache.org/jira/browse/COMPRESS-335
             Project: Commons Compress
          Issue Type: Bug
          Components: Archivers
    Affects Versions: 1.10
            Reporter: Jeremy Gustie


The linked TAR has a checksum with zero padding on the left instead of the expected {{NULL-SPACE}}
terminator on the right. As a result the last two digits of the stored checksum are lost and
the otherwise valid checksum is treated as invalid.

Given that the code already checks for digits being in range before adding them to the stored
sum, is it necessary to only look at the first 6 octal digits instead of the whole field?



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

Mime
View raw message