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

Martin Doerr mdoerr at openjdk.java.net
Tue Oct 26 09:49:11 UTC 2021


On Wed, 20 Oct 2021 18:55:13 GMT, Alexey Pavlyutkin <duke at openjdk.java.net> wrote:

> 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

LGTM. Thanks for backporting.

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

Marked as reviewed by mdoerr (Reviewer).

PR: https://git.openjdk.java.net/jdk11u-dev/pull/545


More information about the jdk-updates-dev mailing list