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

ZipArchiveInputStream should throw if stored entry ends prematurely

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.17
    • 1.18
    • Archivers

    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

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

            Dates

              Created:
              Updated:
              Resolved: