Skip to content

Conversation

@czarpino
Copy link
Collaborator

Extra fields need to have a 2-byte long size field after type field.
Zip64 record in file header did not have this field.

Fixes issue barracudanetworks#44 for recent version of 7-Zip:

* 18.01 reports OK.
* 16.02 still reports Headers Errror.
7-Zip version 16.02 complaints with Headers Error if there is 0xFFFF.
Even when Zip64 EOF has the correct value.

Fixes barracudanetworks#44 in 7-Zip version 16.02.
Only create Zip64 fields that are really needed.
Only create Zip64 block if there is a value that did not fit into 32 bits.
If all values fit into old short EOF fields, skip Zip64.
@czarpino czarpino merged commit b27caab into codelathe:master Nov 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants