[jdk15u-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
Tue Oct 26 12:20:25 UTC 2021


On Tue, 19 Oct 2021 18:49:22 GMT, Alexey Pavlyutkin <duke at openjdk.java.net> wrote:

> 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

This pull request has now been integrated.

Changeset: d38d207a
Author:    Alexey Pavlyutkin <apavlyutkin at azul.com>
Committer: Yuri Nesterenko <yan at openjdk.org>
URL:       https://git.openjdk.java.net/jdk15u-dev/commit/d38d207ab82a5ebeeea1f76dfdce0415c581268f
Stats:     362 lines in 3 files changed: 356 ins; 0 del; 6 mod

8190753: (zipfs): Accessing a large entry (> 2^31 bytes) leads to a negative initial size for ByteArrayOutputStream

Reviewed-by: yan
Backport-of: c3d8e9228d0558a2ce3e093c105c61ea7af2e1d1

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

PR: https://git.openjdk.java.net/jdk15u-dev/pull/116


More information about the jdk-updates-dev mailing list