Skip to content

Conversation

@gfs
Copy link
Contributor

@gfs gfs commented Dec 20, 2022

The underlying dependency's "OpenEntryStream" api is not threadsafe as it implicitly calls the ctor for RarStream which directly maniuplates the shared reference to the overall Stream for the archive file, resulting in corrupted files (albeit of the correct quantity) when using the parallel argument.

https://github.com/adamhathcock/sharpcompress/blob/master/src/SharpCompress/Compressors/Rar/RarStream.cs#L34

Fix #102

The underlying dependency's "OpenEntryStream" api is not threadsafe as it implicitly calls the ctor for RarStream which directly maniuplates the shared reference to the overall Stream for the archive file, resulting in corrupted files (albeit of the correct quantity) when using the parallel argument.
@gfs gfs merged commit 4d6bc30 into main Dec 20, 2022
@gfs gfs deleted the gfs/FixParallelRar branch December 20, 2022 21:21
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

Successfully merging this pull request may close these issues.

RAR archives extracted in parallel fails

2 participants