On Tue Sep 2 16:02:57 2025 +0000, Vibhav Pant wrote:
The spec is a little unclear about when the central directory fields can be ~0:
4.4.1.4 If one of the fields in the end of central directory record is
too small to hold required data, the field SHOULD be set to -1 (0xFFFF or 0xFFFFFFFF) and the ZIP64 format record SHOULD be created. However, I couldn't find anything saying that the fields can be ~0 even when the value can fit inside a 32-bit integer (the data descriptor records are explicitly allowed to do this in 4.3.9.2). It should be fine, though.
I was using this note https://en.wikipedia.org/wiki/ZIP_(file_format)#Central_directory_file_heade...).