Can't decompress some .RAR files #382

Closed
opened 2026-01-29 22:11:03 +00:00 by claunia · 2 comments
Owner

Originally created by @IvanSorokin on GitHub (Oct 28, 2019).

Hello, I am getting exception

SharpCompress.Common.InvalidFormatException: Invalid Rar Header: 251 at SharpCompress.Common.Rar.Headers.RarHeaderFactory.ReadNextHeader(Stream stream)

SharpCompress: 0.24
examples.zip contains two rar files. Can extract them using 7zip or WinRar (5.71) but no luck with SharpCompress =(

Maybe these are RAR 5 archives which are not supported at the moment (it is stated in TODOS list on a main page)

Originally created by @IvanSorokin on GitHub (Oct 28, 2019). Hello, I am getting exception ``` SharpCompress.Common.InvalidFormatException: Invalid Rar Header: 251 at SharpCompress.Common.Rar.Headers.RarHeaderFactory.ReadNextHeader(Stream stream) ``` SharpCompress: 0.24 [examples.zip](https://github.com/adamhathcock/sharpcompress/files/3778746/examples.zip) contains two rar files. Can extract them using 7zip or WinRar (5.71) but no luck with SharpCompress =( Maybe these are RAR 5 archives which are not supported at the moment (it is stated in TODOS list on a main page)
claunia added the question label 2026-01-29 22:11:03 +00:00
Author
Owner

@adamhathcock commented on GitHub (Nov 1, 2019):

RAR5s are supported. Decryption for RAR5 may not work.

@adamhathcock commented on GitHub (Nov 1, 2019): RAR5s are supported. Decryption for RAR5 may not work.
Author
Owner

@Nanook commented on GitHub (Jul 16, 2022):

I'm closing this as the archives extract perfectly in the current version. Filenames and data match originals 1:1.

@Nanook commented on GitHub (Jul 16, 2022): I'm closing this as the archives extract perfectly in the current version. Filenames and data match originals 1:1.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/sharpcompress#382