[jdk21u-dev] RFR: 7036144: GZIPInputStream readTrailer uses faulty available() test for end-of-stream

Todd V. Jonker duke at openjdk.org
Tue Jun 24 20:24:20 UTC 2025


This is a clean backport of [d3f3011](https://github.com/openjdk/jdk/commit/d3f3011d56267360d65841da3550eca79cf1575b), originally authored by @archiecobbs and reviewed by @jaikiran

I believe this should be covered by CSR https://bugs.openjdk.org/browse/JDK-8340729 though (as noted there) the description and issue metadata differ regarding JDK21.

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

-------------

Commit messages:
 - Backport d3f3011d56267360d65841da3550eca79cf1575b

Changes: https://git.openjdk.org/jdk21u-dev/pull/1897/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk21u-dev&pr=1897&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-7036144
  Stats: 111 lines in 2 files changed: 96 ins; 9 del; 6 mod
  Patch: https://git.openjdk.org/jdk21u-dev/pull/1897.diff
  Fetch: git fetch https://git.openjdk.org/jdk21u-dev.git pull/1897/head:pull/1897

PR: https://git.openjdk.org/jdk21u-dev/pull/1897


More information about the jdk-updates-dev mailing list