mattconnolly / ZipArchive

zip archive processing for Cocoa - iPhone and OS X
http://code.google.com/p/ziparchive/
MIT License
840 stars 260 forks source link

Z_DATA_ERROR in arm64bit during inflate #60

Closed jerrchen closed 9 years ago

jerrchen commented 9 years ago

Hi

IOS based code, ziparchive version 1.4.

Before migrating to 64bit (arm64) the code works great. After, no longer able to unzip files:

I am getting -3 (Z_DATA_ERROR) when this line is called err=inflate(&pfile_in_zip_read_info->stream,flush);

        if ((err>=0) && (pfile_in_zip_read_info->stream.msg!=NULL))
          err = Z_DATA_ERROR;

(lldb) po pfile_in_zip_read_info->stream.msg "invalid code lengths set"

This is works nicely until I migrate to 64bit on ios.

jerrchen commented 9 years ago

closed, found the solution, need to link libz1.2.5.dylib