mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-08 13:34:57 +00:00
InvalidOperationException when extracting RAR - 0.42.0, 0.42.1, 0.43.0 #749
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Camble on GitHub (Jan 3, 2026).
Originally assigned to: @adamhathcock, @Copilot on GitHub.
Extracting RAR files now raise InvalidOperationException
Message:
System.InvalidOperationException : unpacked file size does not match header: expected 22369776 found 31148016
Stack Trace:
RarStream.ReadImplAsync(Byte[] buffer, Int32 offset, Int32 count, CancellationToken cancellationToken)
RarStream.ReadAsync(Memory`1 buffer, CancellationToken cancellationToken)
Stream.g__Core|27_0(Stream source, Stream destination, Int32 bufferSize, CancellationToken cancellationToken)
@adamhathcock commented on GitHub (Jan 4, 2026):
I assume this worked with versions earlier than 0.42.0?
What OS and can you give me a sample file?
@adamhathcock commented on GitHub (Jan 4, 2026):
Try https://www.nuget.org/packages/SharpCompress/0.44.0-beta.13
@Camble commented on GitHub (Jan 4, 2026):
That works, thanks.