Re: [PATCH v2] archive-zip: Add zip64 headers when file size is too large for 32 bits
- From
René Scharfe <l.s.r@web.de>
- Date
- Apr 24, 2017, 12:04 UTC
- Message-ID
- <b3f2f12c-2736-46ed-62c9-16334c5e3483@web.de>
- In-Reply-To
- <alpine.DEB.2.00.1704240901520.31537@ds9.cixit.se>
Am 24.04.2017 um 10:04 schrieb Peter Krefting:
Show 21 quoted lines
> Johannes Sixt: > >> There is no "zip64 central directory". There is a "zip64 end of >> central directory record"; > > Not strange that I was confused and couldn't find it, then... :-) > > All right, I need to fix up my patch to make sure I add the zip64 extra > record to both the central directory entry and to the local header, and > make sure to trigger the zip64 end of central directory whenever the zip > file is large enough to warrant one. > >> In summary, yes, when the central directory is constructed, it must >> use the zip64 extra record to note the values of uncompressed size, >> compressed size, and the offset to the local header when they overflow >> 4GB. > > At least that makes it easier to construct, as we only have one central > directory and can just extend the records that need extending. > > Will fix soon.
I have a few patches for that as well. Testing in particular is a bit tricky -- how to avoid creating multi-GB files just for this small feature? I hope to have something to show later today.
René