Skip to content

Conversation

@kolesar-andras
Copy link

Closes #44.

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.
@kolesar-andras kolesar-andras force-pushed the 44-7-zip-reports-headers-error branch from ddee4b7 to e5177ab Compare February 15, 2018 16:02
frederikbosch added a commit to genkgo/archive-stream that referenced this pull request May 7, 2019
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