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

Inconsistent increment of 'loc' in ZipFile.BoundedInputStream

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment