UnrarKit icon indicating copy to clipboard operation
UnrarKit copied to clipboard

About Unexpected end of archive and Corrupt header

Open eric0815 opened this issue 4 years ago • 5 comments

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

eric0815 avatar May 13 '21 09:05 eric0815

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?

abbeycode avatar May 13 '21 15:05 abbeycode

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.

eric0815 avatar May 13 '21 16:05 eric0815

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

abbeycode avatar May 13 '21 18:05 abbeycode

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

eric0815 avatar May 13 '21 23:05 eric0815

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.

eric0815 avatar May 25 '21 02:05 eric0815