On Mon, 30 Nov 2026 20:08:41 GMT, Lance Andersen <[email protected]> wrote:
> Hi all, > > This PR is similar to > [JDK-8396845](https://bugs.openjdk.org/browse/JDK-8396845) which moves the > CEN Header size validation in ZipFileSystem::writeCEN after the extended > timestamp calculation which can result in the extra field length and extra > field data being modified. > > Mach5 tier1 - tier3 ran cleanly > > > > --------- > - [X] I confirm that I make this contribution in accordance with the [OpenJDK > Interim AI Policy](https://openjdk.org/legal/ai). test/jdk/jdk/nio/zipfs/ZipFSMaxCenHdrTest.java line 58: > 56: // ZipFS writes NTFS timestamps on Windows and extended timestamps > otherwise. > 57: private static final int EXTENDED_TIMESTAMP_EXTRABLOCK_SIZE = > 58: System.getProperty("os.name").startsWith("Windows") ? 36 : 9; Hello Lance, for consistency, it might be better to use `jdk.test.lib.Platform.isWindows()` test library method here. That method does a slightly different check, as compared to this one, and is used in some other tests as well. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/34136#discussion_r4750790070
