ZipFileInputStream.available() always returns the full entry size

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P3
    • None
    • Affects Version/s: 1.4.2
    • Component/s: core-libs
    • None
    • generic
    • solaris_2.6

      ZipFileInputStream's available() method incorrectly returns the full entry size in its available() method, rather than the remaining number of bytes that can be read.

      src/share/classes/java/util/zip/ZipFile.java:

      public int available() {
      return size;
      }

      should be:

      public int available() {
      return rem;
      }

      This is causing bug 4818574 to happen. Please see 4818574 for more details.

            Assignee:
            Michael Mccloskey (Inactive)
            Reporter:
            Kirill Soshalskiy (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: