-
Notifications
You must be signed in to change notification settings - Fork 268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error opening zip file #107
Comments
I'll take a look, maybe it's a backslash thingy. What tool did you use to compress it? Because zip format/standard requires |
corrupted zip file.
Did he used zip library to compress it?
…On Fri, 21 Jun, 2019, 7:15 PM Kuba Podgórski, ***@***.***> wrote:
I'll take a look, maybe it's a *backslash* thingy. What tool did you use
to compress it? Because zip format/standard requires / separators as
entries names.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<https://github.com/kuba--/zip/issues/107?email_source=notifications&email_token=AHU4P664O3RWQKRDSIFTKUDP3TLPTA5CNFSM4H2ROII2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYIQFNY#issuecomment-504431287>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHU4P6YOJO67EJ4XBESU3QLP3TLPTANCNFSM4H2ROIIQ>
.
|
Its Warzone2100 map format. Edit: unzip and other zip-reading programs works good. |
For some reason look into my project. May be im doing something wrong... |
It fails in line: https://github.com/kuba--/zip/blob/master/src/miniz.h#L4591 if (((!MZ_READ_LE32(p + MZ_ZIP_CDH_METHOD_OFS)) &&
(decomp_size != comp_size)) ||
(decomp_size && !comp_size) || (decomp_size == 0xFFFFFFFF) ||
(comp_size == 0xFFFFFFFF))
return MZ_FALSE; because |
and if you take a look into central directory of the zip file you can see that some entries contain 64-bit sizes, e.g.:
|
So how can i fix/open this thing without zip modification? |
I'll take a look if I can quickly add 64bit support by merging/upgrading parts of miniz thirdparty. |
This will be very good if it will work |
Can we just ignore this fields or bypass this if somehow? Of course we can but Will this be safe for reading or it will corrupt something? |
@maxsupermanhd - I believe miniz already fixed the problem for 64bit fields. I just need to update our miniz fork. But because it required a little bit hacking I have to do it carefully and not to break anything. |
So updating miniz header can help? |
It not as easy as replacing a header file - |
Sow how can i solve this? Just gui pull? |
I've started porting slowly (in my spare time). |
@maxsupermanhd - I have a PR (https://github.com/kuba--/zip/pull/108) for branch |
btw. windows build fixed. |
@maxsupermanhd - ping |
Yey! Will test as soon as possible. |
On first look seems to be working. Still need to do some more tests but this zip file now working. |
@maxsupermanhd - shall I merge #108 into the master? Does it work for you? |
10c-AllyToAlly-7e1e4457e81e95ffa5993e3f6ba484ac0ee2625729dfc85a5e48aeecaea1bb61.zip
![image](https://user-images.githubusercontent.com/20772987/59923919-3f741980-943d-11e9-89b5-de14ab8181a1.png)
The text was updated successfully, but these errors were encountered: