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

PAX header parser fails for non-ASCII values

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.3
    • 1.4
    • Archivers
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: