mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-04 05:25:00 +00:00
XZ decompression doesn't like SHA-256 checksums #676
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 @ms264556 on GitHub (Mar 7, 2025).
I think, since the XZ code doesn't actually run an block checksums, the fix would simply be skipping the correct number of bytes?
PR is here: https://github.com/adamhathcock/sharpcompress/pull/901.
@ms264556 commented on GitHub (Mar 7, 2025):
Actually, by reference to section 2.1.1.2 of the specification, the number of bytes formula just needs a tweak (since it currently returns 16 bytes for SHA-256 and should return 32).
I'll update my PR with the formula.