Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8292327 java.io.EOFException in InflaterInputStream after JDK-8281962
  3. JDK-8292436

Release Note: InflaterInputStream.read Throws EOFException

    XMLWordPrintable

Details

    Description

      A change to `java.util.zip.InflaterInputStream` in this release means it is possible that reading uncompressed bytes with this API can fail with an unexpected `java.io.EOFException`.

      The issue arises when reading uncompressed bytes with a byte array that isn't large enough to fit all bytes that have been uncompressed. In that case, the additional uncompressed bytes are buffered by the implementation to be consumed by the next call to the `read` method. If the compressed stream is at end of stream then a subsequent `read` of the uncompressed data will fail incorrectly with `EOFException`.

      This issue will be fixed in a future update. It may be possible to workaround the issue in some cases by calling `read` with a larger bye array.

      Attachments

        Activity

          People

            alanb Alan Bateman
            alanb Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: