rardecode icon indicating copy to clipboard operation
rardecode copied to clipboard

support for unpackver=20?

Open campbellr opened this issue 7 years ago • 5 comments

I have a bunch of rar files that are (apparently) RAR4. Most of them fail to extract with rardecode with a unsupported decoder version. Adding some print statements shows that unpackver is 20.

Is there any particular reason that it is unsupported (other than lack of time, say)?

Is expanding the set of supported versions/formats something that is in the pipeline?

If there are no huge blockers, I may take a stab at adding support (although at this point i know nothing about the rar format(s) except the little i've gleaned from scanning through this codebase and the c++ unrar codebase)

campbellr avatar Nov 08 '17 06:11 campbellr

I just had no files to test with. Current winrar, etc won't create the old versions.

I could have a go at it. I had a quick look, and since its the predecessor to 29 I could reuse/copy a bunch of stuff from it. It looks quite familiar. I might have to rework a few small things, as I couldn't see any explicit end of block marker in the format.

Having a test file would make it easier.

nwaples avatar Nov 09 '17 03:11 nwaples

That would be great. I can upload the rar file that was failing somewhere and attach a link here if you want.

campbellr avatar Nov 13 '17 03:11 campbellr

Sure, that would be good.

nwaples avatar Nov 14 '17 00:11 nwaples

I've added some code in the experimental branch for unpackver 20. Its untested, but if you are very lucky maybe it will work.

nwaples avatar Nov 21 '17 12:11 nwaples

No idea what version these files are, but this library will not extract them. Found them in some 10+ year old torrents. Hoping you can make it work! 🤞 I put both RAR files inside a zip file so GitHub would accept them.

  • b2b_gui01b.rar produces rardecode: unsupported decoder version
  • dc_selfboot_kit.rar produces rardecode: bad header crc

Archive.zip

davidnewhall avatar Dec 10 '22 21:12 davidnewhall