Skip to content
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

About Unexpected end of archive and Corrupt header #99

Open
eric0815 opened this issue May 13, 2021 · 5 comments
Open

About Unexpected end of archive and Corrupt header #99

eric0815 opened this issue May 13, 2021 · 5 comments

Comments

@eric0815
Copy link

eric0815 commented May 13, 2021

I got a rar file from our customer,UnrarKit showes "Archive has a corrupt header".

I add "archive.ignoreCRCMismatches = YES;" and error is gone,but no files being unrared.

WinRar for windows can unrar the files successfully.

I try to repair it with "repair tool" in WinRar for windows,it showes "Unexpected end of archive" and "Corrupt header is found"

The demo rar file is here,please help.Thanks.
https://drive.google.com/file/d/16aPRcMMk7BNosF0YzzD2BQbIJXPQNykF/view

@abbeycode
Copy link
Owner

Hi, @eric0815 and thanks for reaching out. Are you able to send a different link? That page doesn't load properly for me, and the buttons to download the file are in an Asian language I can't read so I don't know which of them to click to download it.

I'll take a look, but if even WinRar thinks it's corrupted, there's not much I'm going to be able to do. What are you hoping for, partial extraction of the archive? Did WinRar extract all files successfully and only give an error when you went to repair it?

@eric0815
Copy link
Author

Hi,@abbeycode,Thanks for your answer.I uploaded the rar file to google drive and updated the link address.
Yes, Winrar thinks it's corrupted if I try to repair it.But If I just unrar it,WinRAR can unrar all files successfully.

So,Can UnrarKit ignore this part of archive check and just try to unrar the files in the archive directly?

Thanks.

@abbeycode
Copy link
Owner

The new archive only contains the UnrarKit README.md file - is that what you intended?

@eric0815
Copy link
Author

Hi,@abbeycode,YES.Only one README file.Thanks.

@eric0815
Copy link
Author

Hi,@abbeycode,There is one README file in the demo rar file.I can not unarchive the file with UnrarKit like winrar does.Any suggestions would be appreciated.Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants