[jdk15u-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:05:37 UTC 2021
I'd like to backport JDK-8190753 to jdk15u for parity with jdk17u.
The original patch applied with minor changes:
- eliminated using of instanceof pattern matching feature that is disabled bt default
The 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/jdk15u-dev/pull/116/files
Webrev: https://webrevs.openjdk.java.net/?repo=jdk15u-dev&pr=116&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/jdk15u-dev/pull/116.diff
Fetch: git fetch https://git.openjdk.java.net/jdk15u-dev pull/116/head:pull/116
PR: https://git.openjdk.java.net/jdk15u-dev/pull/116
More information about the jdk-updates-dev
mailing list