Skip to content

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

@mrsergio

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?

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