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

Inconsistent increment of 'loc' in ZipFile.BoundedInputStream

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.14
    • Component/s: None
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: