Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4818580

ZipFileInputStream.available() always returns the full entry size

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 1.4.2
    • 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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: