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

ZipArchiveInputStream should throw if stored entry ends prematurely

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.17
    • Fix Version/s: 1.18
    • Component/s: Archivers
    • Labels:

      Description

      If the archive stream ends before the claimed size of a stored entry has been hit the stream returns -1 rather than throwing a "truncated archive" exception like it would do for deflated entries.

      Because of this it is impossible to detect a truncated stored entry.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: