You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ICSharpCode.SharpZipLib.Zip.ZipException: Wrong Central Directory signature #356
Confirmed. This is due to the fact that the file has a Zip64 Central Directory, while not using any Zip64 extensions. It also contains a non-zip64 CD, but it seems to be corrupt.
The way SharpZipLib detects whether to use Zip64 is if any of the fields are set to all 1s (0xffff etc), and only then tries to find the Zip64 signature.
This means that unzip and other programs that just tries to find both headers at once works fine, while SharpZipLib (albeit correctly) complains about the invalid Central Directory.
We should probably attempt to find the Zip64 signature at once as well, this would make the library work more like most other zip-implementations and handle non-compliant zip files better.
Activity
piksel commentedon Jun 18, 2019
Confirmed. This is due to the fact that the file has a Zip64 Central Directory, while not using any Zip64 extensions. It also contains a non-zip64 CD, but it seems to be corrupt.
The way SharpZipLib detects whether to use Zip64 is if any of the fields are set to all 1s (0xffff etc), and only then tries to find the Zip64 signature.
This means that
unzipand other programs that just tries to find both headers at once works fine, while SharpZipLib (albeit correctly) complains about the invalid Central Directory.We should probably attempt to find the Zip64 signature at once as well, this would make the library work more like most other zip-implementations and handle non-compliant zip files better.
piksel commentedon Jun 18, 2019
I made a new issue #357 for the root cause to link this and other issues into.
Bump to xamarin/monodroid/master@01a4e0a0
Bump to xamarin/monodroid/master@01a4e0a0 (#4210)