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

PAX header parser fails for non-ASCII values

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.3
    • Fix Version/s: 1.4
    • Component/s: Archivers
    • Labels:
      None

      Description

      The current logic parsing PAX extension headers fails if the number of bytes used to encode an entry is different from the number of characters - i.e. for any character outside of the ASCII range as the headers are UTF-8 encoded. E.g.

      11 path=รค
      

      takes 11 bytes (one has to account for the trailing newline) for 10 characters and the parser fails with "Expected 3 chars, read 2"

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                bodewig Stefan Bodewig
                Reporter:
                bodewig Stefan Bodewig
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: