RFR: 8303866: Allow ZipInputStream.readEnd to parse small Zip64 ZIP files

Eirik Bjorsnos duke at openjdk.org
Wed Mar 29 09:34:45 UTC 2023


On Tue, 28 Feb 2023 20:31:43 GMT, Eirik Bjorsnos <duke at openjdk.org> wrote:

> Thanks a lot for looking into this, Lance!
> 
> > Are you aware of any tools that would create this scenario as to the best of my knowledge we have not encountered one that does as of yet?
> 
> The following on my Mac produces a Zip64 file with an 8-byte data descriptor:
> 
> `echo hellohellohellohellohellohellohellohello | zip > hello.zip`

Scratch that, I must have looked at the wrong trace output. This produces a file with a Zip64 extra field, but without the Data Descriptor following the File data. 

At any rate, the motivation for this change is not mainly to support any existing zip producer, but to implement the specification and to allow tests to create small, parseable Zip64 files with 8-byte data descriptors.

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

PR Comment: https://git.openjdk.org/jdk/pull/12524#issuecomment-1448893609


More information about the core-libs-dev mailing list