8000 Minizip can't open a zip-file created by OS X and bigger than 4 GB · Issue #5 · zlib-ng/minizip-ng · GitHub
[go: up one dir, main page]

Skip to content

Minizip can't open a zip-file created by OS X and bigger than 4 GB #5

Closed

Description

@mrsergio

Hi!

I created 2 zip-files by OS X (via context menu -> Compress Files)
photopicker22

One is 6.25 GB and second is 3.78 GB.

Results:

  • Unzipping 6.25 GB zip-file using OSX
  • [!] Unzipping 6.25 GB zip-file using Minizip == ERROR
  • [!] Unzipping 6.25 GB zip-file using standard Windows unzipper == ERROR
  • [!] Unzipping 6.25 GB zip-file using 7-zip (Windows version) == SOME ERRORS. While unzipping, 7-zip says that some files have unsupported compression method.
  • Unzipping 3.78 GB zip-file using OSX
  • Unzipping 3.78 GB zip-file using Mizinip.
  • Unzipping 3.78 GB zip-file using standard Windows unzipper
  • Unzipping 3.78 GB zip-file using 7-zip (Windows version)

Error in unzip.c, started at #1060

if (unz64local_getLong(&s->z_filefunc, s->filestream, &uMagic) != UNZ_OK)
err = UNZ_ERRNO;
else if (uMagic!=LOCALHEADERMAGIC)
err = UNZ_BADZIPFILE;

Its got a wrong 'uMagic' in 'unz64local_getLong' that is not the same as 'LOCALHEADERMAGIC'.

So, looking that OSX is compressing zip-files (which are bigger than 4 GB) by own method that Windows and Minizip can't recognize?

Activity

  1. nmoinvaz commented on Jun 25, 2013

    @nmoinvaz
    Member

    Can you make one of these files available somewhere?

  2. nmoinvaz commented on Jun 25, 2013

    @nmoinvaz
    Member
  3. mrsergio commented on Jun 25, 2013

    @mrsergio
    Author

    I created a torrent-file: https://dl.dropboxusercontent.com/u/4466288/zip.zip.torrent

    It's a 6.25 GB zip-file in it, which i used in my tests in 1st message.

  4. nmoinvaz commented on Jun 26, 2013

    @nmoinvaz
    Member

    I verified that Apple does not respect ZIP64. At line 568 I added a hack that you can uncomment to get it to work with zip files that are greater than 4GB but don't support the ZIP64 standard.

  5. added
    1.2Related to older version of minizip 1.2
    zipZIP file format
    on Apr 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    1.2Related to older version of minizip 1.2zipZIP file format

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0