[jdk11u-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:06:36 UTC 2021
I'd like to backport JDK-8190753 to jdk11u for parity with jdk13u.
The original patch applied with minor changes:
- eliminated using of unsupported instanceof pattern match feature
- calls of unsupported FileSystems.newFileSystem(Path) and FileSystems.newFileSystem(Path, Map<String,?>) interfaces are replaced with FileSystems.newFileSystem(URI,Map<String,?>)
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/jdk11u-dev/pull/545/files
Webrev: https://webrevs.openjdk.java.net/?repo=jdk11u-dev&pr=545&range=00
Issue: https://bugs.openjdk.java.net/browse/JDK-8190753
Stats: 368 lines in 3 files changed: 362 ins; 0 del; 6 mod
Patch: https://git.openjdk.java.net/jdk11u-dev/pull/545.diff
Fetch: git fetch https://git.openjdk.java.net/jdk11u-dev pull/545/head:pull/545
PR: https://git.openjdk.java.net/jdk11u-dev/pull/545
More information about the jdk-updates-dev
mailing list