Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for extracting Apple's "endless" zip streams #66

Open
tempelmann opened this issue Feb 25, 2024 · 1 comment
Open

Support for extracting Apple's "endless" zip streams #66

tempelmann opened this issue Feb 25, 2024 · 1 comment

Comments

@tempelmann
Copy link

I actually haven't tested your code to see if it already supports this, but since I just wrote something about Apple's special zip format (https://iosdev.space/@tempelorg/111993220533529890), I thought I'd look for hastags on zip64 and found this.

So here's the deal: In order to allow >4GB files compressed without using zip64, Apple simply streams the entire file while leaving the sizes in the header set to zero. And the entry in the directory contains the size mod 2^32, of course. So you cannot predict the resulting size, but Apple's unzip can still decompress the files because it blindly decompresses the stream until its end marker.

Would you nice if you support that, too, and spread the word, as Apple has sadly not made this very public.

I'm happy to provide more info and sample files.

@fasterthanlime
Copy link
Collaborator

I actually haven't tested your code to see if it already supports this

I haven't either! The last development push for 4.0 was sponsored by a company using that crate: I have no personal plans to support that variant or even test if it's already supported, but if someone else wants to, I'll do my best to guide them and get their contributions merged.

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

No branches or pull requests

2 participants