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

ZipArchiveInputStream should throw an exception if a data descriptor is used for STORED entries

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0
    • Fix Version/s: 1.1
    • Component/s: None
    • Labels:
      None

      Description

      There is no reliable way to determine the end of data when the method is STORE and in fact the current code relies on the method to be DEFLATE in that case.

      I propose to make this figure into the canReadEntryData method and to throw an exception if any attempt is made
      to read the data.

        Attachments

          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: