On Tue, 1 Dec 2026 17:11:36 GMT, Lance Andersen <[email protected]> wrote:

>> src/jdk.zipfs/share/classes/jdk/nio/zipfs/ZipFileSystem.java line 3124:
>> 
>>> 3122:             long headerSize = (long)CENHDR + nlen + clen + elen + 
>>> elen64 + elenNTFS + elenEXTT;
>>> 3123:             if (headerSize > 0xFFFF ) {
>>> 3124:                 throw new ZipException("invalid CEN header (bad 
>>> header size)");
>> 
>> The close method invokes sync before it closes the channel. Do you mind 
>> checking this as it looks like the ch.close will be skipped if sync throws 
>> ZipException (or any exception so applies to other writing ops too).
>
> Yes, there is some work to do here.  I will create a separate issue for this 
> as it goes beyond the scope of this fix.  Thank you for pointing this out

Thanks for changing, doing this in a follow-up PR is fine. I was just trying to 
see how the ZipException is handling in the caller.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/34136#discussion_r4758174733

Reply via email to