git: openjdk/jdk: master: 8340553: ZipEntry field validation does not take into account the size of a CEN header

Lance Andersen lancea at openjdk.org
Mon Oct 21 15:36:11 UTC 2024


Changeset: 54a744b0
Branch: master
Author:    Lance Andersen <lancea at openjdk.org>
Date:      2024-10-21 15:34:27 +0000
URL:       https://git.openjdk.org/jdk/commit/54a744b0235ab2987f2e9c78fb5326b15233d176

8340553: ZipEntry field validation does not take into account the size of a CEN header

Reviewed-by: jpai, redestad, eirbjo

! src/java.base/share/classes/java/util/zip/ZipEntry.java
! src/java.base/share/classes/java/util/zip/ZipOutputStream.java
+ test/jdk/java/util/zip/ZipEntry/MaxZipEntryFieldSizeTest.java
- test/jdk/java/util/zip/ZipOutputStream/ZipOutputStreamMaxCenHdrTest.java



More information about the jdk-changes mailing list