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

max zip entries #81

Closed
dsula opened this issue Oct 11, 2018 · 14 comments
Closed

max zip entries #81

dsula opened this issue Oct 11, 2018 · 14 comments
Labels
help wanted Extra attention is needed zip64 Support for 64bit zip

Comments

@dsula
Copy link

dsula commented Oct 11, 2018

Hi,

I discovered that the maximum number of entries in a zip file is 65535.
Any chance that this limitation could be increased?

Cheers
ds

@dsula
Copy link
Author

dsula commented Oct 11, 2018

Browsing thru zip.c I see code like that:

// no zip64 support yet
if ((pzip->m_total_files == 0xFFFF)

Is > 64k entries considered zip64 support?

Cheers

@kuba--
Copy link
Owner

kuba-- commented Oct 11, 2018

@dsula - kind of.. (some zip64 extensions support more than 64K entries):

The original .ZIP format had a 4 GiB (232 bytes) limit on various things (uncompressed size of a > file, compressed size of a file, and total size of the archive), as well as a limit of 65,535 (2^16) > entries in a ZIP archive.

@kuba-- kuba-- closed this as completed Oct 11, 2018
@zhu-ty
Copy link

zhu-ty commented Jul 17, 2019

I am also reaching this point, I have total >4GiB files in one zip file, how did you fix it? @dsula

@dsula
Copy link
Author

dsula commented Jul 17, 2019

@zhu-ty : I had no other choice but to split the zip into multiple files. Then I built a container file combining the multiple zip files into one. It worked for me because I don't have to handle individual files out of the zip archive. It's either compress them all or extract them all.

@kuba--
Copy link
Owner

kuba-- commented Jul 17, 2019

I'll try to fix it, adding an extra support, so I'm reopening the issue (so far)

@kuba-- kuba-- reopened this Jul 17, 2019
@zhu-ty
Copy link

zhu-ty commented Jul 17, 2019

OH, @kuba-- and @dsula thanks a lot for your help! Then maybe I will just wait for your solution~

@zhu-ty
Copy link

zhu-ty commented Jul 25, 2019

Well is the problem fixed?

@kuba-- kuba-- added the question Further information is requested label Jul 28, 2019
@kuba--
Copy link
Owner

kuba-- commented Jul 28, 2019

@zhu-ty - not yet. I'll have to upgrade miniz.h (carefully) which already supports 64bit zips.

@kuba-- kuba-- added the help wanted Extra attention is needed label Jul 29, 2019
@kuba--
Copy link
Owner

kuba-- commented Jul 29, 2019

It turned out that to solve this issue in a solid way we need to add support for zip64.
I spent a day to upgrade miniz (which already supports zip64), but it's kind of tricky, mainly because our fork hacked it a little bit, plus zip.c also contains some parts of miniz implementation.
Anyway, tests started failing, so I've reverted my work. Hopefully we can fix/add support for zip64 in something like v2.0.0. But for v2 I suppose we should not modify miniz, and in zip.c use only miniz API. The only open question is... can we achieve all what we have so far (merging etc.) just with pure miniz interface.

@kuba-- kuba-- added zip64 Support for 64bit zip and removed question Further information is requested labels Jul 29, 2019
@kuba-- kuba-- closed this as completed Jul 29, 2019
@dsula
Copy link
Author

dsula commented Jul 29, 2019

that was quick. Nice Job!

@kuba--
Copy link
Owner

kuba-- commented Jul 29, 2019

@dsula - I'm closing the issue, right now. I'll open a new one just to add zip64 support.
So far the issue still exists, because the library does not support zip64, yet.

@dsula
Copy link
Author

dsula commented Jul 29, 2019

Ok, gotcha.

@kuba--
Copy link
Owner

kuba-- commented Jul 29, 2019

@zhu-ty
Copy link

zhu-ty commented Jul 30, 2019

That was quick thanks, I will be watching the new issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed zip64 Support for 64bit zip
Projects
None yet
Development

No branches or pull requests

3 participants