[PR #55] [MERGED] Added read support for RARs with Protect Headers #815

Open
opened 2026-01-29 22:17:43 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/adamhathcock/sharpcompress/pull/55
Author: @benshoof
Created: 5/8/2015
Status: Merged
Merged: 5/8/2015
Merged by: @adamhathcock

Base: masterHead: rar_protect_header


📝 Commits (1)

  • ae1e37c Added read support for RARs with Protect Headers

📊 Changes

7 files changed (+54 additions, -0 deletions)

View changed files

SharpCompress/Common/Rar/Headers/ProtectHeader.cs (+22 -0)
📝 SharpCompress/Common/Rar/Headers/RarHeaderFactory.cs (+27 -0)
📝 SharpCompress/SharpCompress.NET2.csproj (+1 -0)
📝 SharpCompress/SharpCompress.Portable.csproj (+1 -0)
📝 SharpCompress/SharpCompress.PortableTest.csproj (+1 -0)
📝 SharpCompress/SharpCompress.WindowsStore.csproj (+1 -0)
📝 SharpCompress/SharpCompress.csproj (+1 -0)

📄 Description

Some RARs with recovery records contain Protect Headers, I've added
support for parsing them so that RARs containing them can be read,
instead of an invalid-header exception being thrown. Parsing logic taken
from unrar reference source.


🔄 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/55 **Author:** [@benshoof](https://github.com/benshoof) **Created:** 5/8/2015 **Status:** ✅ Merged **Merged:** 5/8/2015 **Merged by:** [@adamhathcock](https://github.com/adamhathcock) **Base:** `master` ← **Head:** `rar_protect_header` --- ### 📝 Commits (1) - [`ae1e37c`](https://github.com/adamhathcock/sharpcompress/commit/ae1e37cde6881d370097ca18167e6c9333e39665) Added read support for RARs with Protect Headers ### 📊 Changes **7 files changed** (+54 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `SharpCompress/Common/Rar/Headers/ProtectHeader.cs` (+22 -0) 📝 `SharpCompress/Common/Rar/Headers/RarHeaderFactory.cs` (+27 -0) 📝 `SharpCompress/SharpCompress.NET2.csproj` (+1 -0) 📝 `SharpCompress/SharpCompress.Portable.csproj` (+1 -0) 📝 `SharpCompress/SharpCompress.PortableTest.csproj` (+1 -0) 📝 `SharpCompress/SharpCompress.WindowsStore.csproj` (+1 -0) 📝 `SharpCompress/SharpCompress.csproj` (+1 -0) </details> ### 📄 Description Some RARs with recovery records contain Protect Headers, I've added support for parsing them so that RARs containing them can be read, instead of an invalid-header exception being thrown. Parsing logic taken from unrar reference source. --- <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:17:43 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/sharpcompress#815