-
Notifications
You must be signed in to change notification settings - Fork 985
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
ICSharpCode.SharpZipLib.Zip.ZipException: Wrong Central Directory signature #356
Comments
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. 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. |
I made a new issue #357 for the root cause to link this and other issues into. |
Changes: xamarin/monodroid@017b361...01a4e0a Context: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1033784 Context: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1035905 Context: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/946984 Context: icsharpcode/SharpZipLib#356 * xamarin/monodroid@01a4e0a0c: Bump to xamarin/androidtools@2ffbfcb7 (dotnet#1074) * xamarin/monodroid@987ce4d1b: Remove external/debugger-libs (dotnet#1072) * xamarin/monodroid@7ded15051: Bump to mono/debugger-libs@5e5b5efb (dotnet#1071) * xamarin/monodroid@072746460: Bump to xamarin/android-sdk-installer@c694d0da (dotnet#1070)
Changes: xamarin/monodroid@017b361...01a4e0a Context: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1033784 Context: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1035905 Context: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/946984 Context: icsharpcode/SharpZipLib#356 * xamarin/monodroid@01a4e0a0c: Bump to xamarin/androidtools@2ffbfcb7 (#1074) * xamarin/monodroid@987ce4d1b: Remove external/debugger-libs (#1072) * xamarin/monodroid@7ded15051: Bump to mono/debugger-libs@5e5b5efb (#1071) * xamarin/monodroid@072746460: Bump to xamarin/android-sdk-installer@c694d0da (#1070)
File to test: https://dl.google.com/android/repository/sys-img/android-wear/x86-P_r02.zip.
SharpZipLib fails to unzip this file, while Windows10 is able to do it using
Extract All...
menu item.Steps to reproduce
Wrong Central Directory signature
error.Version of SharpZipLib
1.1.0
Obtained from (only keep the relevant lines)
The text was updated successfully, but these errors were encountered: