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

Yuri Nesterenko yan at openjdk.java.net
Tue Oct 26 15:43:05 UTC 2021


Changeset: ccfe697f
Author:    Alexey Pavlyutkin <apavlyutkin at azul.com>
Committer: Yuri Nesterenko <yan at openjdk.org>
Date:      2021-10-26 15:12:54 +0000
URL:       https://git.openjdk.java.net/jdk17u/commit/ccfe697f2330cd385e6b9842412fc6cc86494ed8

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

Backport-of: c3d8e9228d0558a2ce3e093c105c61ea7af2e1d1

! src/jdk.zipfs/share/classes/jdk/nio/zipfs/ZipFileSystem.java
+ test/jdk/jdk/nio/zipfs/LargeCompressedEntrySizeTest.java
+ test/jdk/jdk/nio/zipfs/ZipFSOutputStreamTest.java



More information about the jdk-updates-changes mailing list