mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-04 05:25:00 +00:00
[Bug] CompressionType.None should be supported for uncompressed 7z files #700
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 @arcastro on GitHub (Sep 23, 2025).
Originally assigned to: @Copilot on GitHub.
What is the bug?
Uncompressed files within 7z archives already seem to be supported, in that they already "extract" correctly.
However, when reading the CompressionType field within the Entry, it currently throws an InvalidFormatException
Proposed Solution
I believe the fix should be simple enough.
Within the following block,
45de87cb97/src/SharpCompress/Common/SevenZip/SevenZipFilePart.cs (L70-L90)We could add:
and
If you agree, I'd be happy to open a pull-request, but I figured I'd open an issue first, in case you have different thoughts.