adamhathcock / sharpcompress

SharpCompress is a fully managed C# library to deal with many compression types and formats.
MIT License
2.26k stars 480 forks source link

SharpCompress doesn't support ARM64 and RISCV filters for 7zip or XZ #822

Closed klimatr26 closed 5 months ago

klimatr26 commented 5 months ago

Hello.

7-zip added an ARM64 filter for ARM64 executables in version 23.01. It also added a RISCV filter in version 24.03. imagen

Currently, sharpcompress cannot decompress files that use those filters.

I was able to add support for those filters in 7-zip.

I'm not too familiar with XZ, but it uses liblzma, which incorporated those new filters. However, the code that sharpcompress uses for XZ filters seems to be based on the LZMA SDK.

Have a good day.

adamhathcock commented 5 months ago

This was merged. Thanks.

XZ is based on LZMA but I haven't refreshed myself to what is needed for XZ. Will look more.