Uploaded image for project: 'Commons Compress'
  1. Commons Compress
  2. COMPRESS-335

TAR checksum fails when checksum is right aligned

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.10
    • 1.11
    • Archivers
    • None

    Description

      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?

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jgustie Jeremy Gustie
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: