Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Zip: force Disk Start Number to -1 in a Zip64 Central Directory Entry
When using Zip64 in the Central Directory Entry, the Extra block always includes the Disk Start Number (regardless of whether is it needed or not.) Clause 4.5.3 of the PKWare spec clearly states that it MUST only appear in the Extra block when the corresponding field in the CDE (or LDE) was set to -1 (0xFFFF in the case of the Disk Start Number.) Some tools (such as 7-Zip) show warnings in this case, but often work as expected. Others (such as older versions of System.IO.Compression) follow the spec more stringently and will refuse to use the values from the Zip64 Extra block when the related values do not match their expectation. Fixes haf#260
- Loading branch information