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

Inconsistent increment of 'loc' in ZipFile.BoundedInputStream

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.14
    • None
    • None

    Description

      ZipFile.BoundedInputStream.read() always increments loc, even if no bytes are read.

      However ZipFile.BoundedInputStream.read(byte[] b, int off, int len) only increments the field if some bytes were read.

      This looks wrong.

      Attachments

        Activity

          People

            Unassigned Unassigned
            sebb Sebb
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: