On Tue, 28 Feb 2023 20:48:47 GMT, Eirik Bjorsnos <d...@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.

Ok, it turns out `zip` has a `-fd` option (force descriptor). This allows small 
Zip64 files with Data Descriptors to be created the following way:

`echo hello | zip -fd > hello.zip`

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

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

Reply via email to