[PR #901] [MERGED] Handle XZ CheckType SHA-256 #1327

Closed
opened 2026-01-29 22:20:00 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/adamhathcock/sharpcompress/pull/901
Author: @ms264556
Created: 3/7/2025
Status: Merged
Merged: 3/7/2025
Merged by: @adamhathcock

Base: masterHead: feature/sha256-quick-fix


📝 Commits (2)

  • 3a7fbdf Handle XZ CheckType SHA-256
  • 187b762 Corrected XZ BlockCheckSize formula

📊 Changes

2 files changed (+2 additions, -5 deletions)

View changed files

📝 src/SharpCompress/Compressors/Xz/XZHeader.cs (+1 -1)
📝 src/SharpCompress/Compressors/Xz/XZStream.cs (+1 -4)

📄 Description

Add CheckType.SHA256 to the XZHeader.BlockCheckSize 'calculation' so XZ can decompress e.g. RPM package payloads.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/adamhathcock/sharpcompress/pull/901 **Author:** [@ms264556](https://github.com/ms264556) **Created:** 3/7/2025 **Status:** ✅ Merged **Merged:** 3/7/2025 **Merged by:** [@adamhathcock](https://github.com/adamhathcock) **Base:** `master` ← **Head:** `feature/sha256-quick-fix` --- ### 📝 Commits (2) - [`3a7fbdf`](https://github.com/adamhathcock/sharpcompress/commit/3a7fbdfa522ea8ebb2d3082bb77ef661e1c7a4ae) Handle XZ CheckType SHA-256 - [`187b762`](https://github.com/adamhathcock/sharpcompress/commit/187b762f8ae99de1448640b7c3cfe8bd58696907) Corrected XZ BlockCheckSize formula ### 📊 Changes **2 files changed** (+2 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `src/SharpCompress/Compressors/Xz/XZHeader.cs` (+1 -1) 📝 `src/SharpCompress/Compressors/Xz/XZStream.cs` (+1 -4) </details> ### 📄 Description Add `CheckType.SHA256` to the `XZHeader.BlockCheckSize` 'calculation' so XZ can decompress e.g. RPM package payloads. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-29 22:20:00 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/sharpcompress#1327