[jdk13u-dev] RFR: 8190753: (zipfs): Accessing a large entry (> 2^31 bytes) leads to a negative initial size for ByteArrayOutputStream

Alexey Pavlyutkin duke at openjdk.java.net
Fri Oct 22 15:02:48 UTC 2021


I'd like to backport JDK-8190753 to jdk13u for parity with jdk15u.

The original patch applied with minor changes:

- eliminated using of unsupported instanceof pattern matching feature

Functionality was tested with accompanying

- ./test/jdk/jdk/nio/zipfs/LargeCompressedEntrySizeTest.java
- ./test/jdk/jdk/nio/zipfs/ZipFSOutputStreamTest.java

Regression: jdk_tier2

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

Commit messages:
 - Backport c3d8e9228d0558a2ce3e093c105c61ea7af2e1d1

Changes: https://git.openjdk.java.net/jdk13u-dev/pull/275/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk13u-dev&pr=275&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8190753
  Stats: 362 lines in 3 files changed: 356 ins; 0 del; 6 mod
  Patch: https://git.openjdk.java.net/jdk13u-dev/pull/275.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk13u-dev pull/275/head:pull/275

PR: https://git.openjdk.java.net/jdk13u-dev/pull/275


More information about the jdk-updates-dev mailing list