jdk17u-dev icon indicating copy to clipboard operation
jdk17u-dev copied to clipboard

7036144: GZIPInputStream readTrailer uses faulty available() test for end-of-stream

Open toddjonker opened this issue 5 months ago • 19 comments
trafficstars

This is a clean backport of d3f3011, originally authored by @archiecobbs and reviewed by @jaikiran

The corresponding backport for JDK21 is https://github.com/openjdk/jdk21u-dev/pull/1897

Testing:

  • [x] New regression test fails without the fix, passes with it
  • [x] linux-x86_64-server-release: headless tiers 1-3

Progress

  • [x] Change must not contain extraneous whitespace
  • [x] Commit message must refer to an issue
  • [x] Change requires CSR request JDK-8340729 to be approved
  • [ ] JDK-7036144 needs maintainer approval

Issues

  • JDK-7036144: GZIPInputStream readTrailer uses faulty available() test for end-of-stream (Bug - P4 - Requested)
  • JDK-8340729: GZIPInputStream readTrailer uses faulty available() test for end-of-stream (CSR)

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk17u-dev.git pull/3667/head:pull/3667
$ git checkout pull/3667

Update a local copy of the PR:
$ git checkout pull/3667
$ git pull https://git.openjdk.org/jdk17u-dev.git pull/3667/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 3667

View PR using the GUI difftool:
$ git pr show -t 3667

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk17u-dev/pull/3667.diff

Using Webrev

Link to Webrev Comment

toddjonker avatar Jun 19 '25 19:06 toddjonker