[jdk11u-dev] Integrated: 8190753: (zipfs): Accessing a large entry (> 2^31 bytes) leads to a negative initial size for ByteArrayOutputStream
Alexey Pavlyutkin
duke at openjdk.java.net
Thu Oct 28 06:42:20 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
This pull request has now been integrated.
Changeset: 8a9cda2d
Author: Alexey Pavlyutkin <apavlyutkin at azul.com>
Committer: Yuri Nesterenko <yan at openjdk.org>
URL: https://git.openjdk.java.net/jdk11u-dev/commit/8a9cda2d84513ab49a54e1d2a7b530f0bae05c61
Stats: 368 lines in 3 files changed: 362 ins; 0 del; 6 mod
8190753: (zipfs): Accessing a large entry (> 2^31 bytes) leads to a negative initial size for ByteArrayOutputStream
Reviewed-by: mdoerr
Backport-of: c3d8e9228d0558a2ce3e093c105c61ea7af2e1d1
-------------
PR: https://git.openjdk.java.net/jdk11u-dev/pull/545
More information about the jdk-updates-dev
mailing list