[PR #825] [MERGED] Fix tar corruption when sizes mismatch #1263

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

📋 Pull Request Information

Original PR: https://github.com/adamhathcock/sharpcompress/pull/825
Author: @adamhathcock
Created: 4/9/2024
Status: Merged
Merged: 4/11/2024
Merged by: @adamhathcock

Base: masterHead: tar-corruption


📝 Commits (6)

  • bf74dd8 Fix tar corruption when sizes mismatch
  • 2321d9d fix patch
  • fdfaa8a add max transfer size to tar
  • eab97a3 calculate remaining afterwards
  • cb22321 actually, transfer block is different than overall transfer
  • 373637e more logic fixes

📊 Changes

3 files changed (+50 additions, -2 deletions)

View changed files

📝 SharpCompress.sln.DotSettings (+5 -0)
📝 src/SharpCompress/Utility.cs (+44 -0)
📝 src/SharpCompress/Writers/Tar/TarWriter.cs (+1 -2)

📄 Description

Addresses https://github.com/adamhathcock/sharpcompress/issues/820


🔄 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/825 **Author:** [@adamhathcock](https://github.com/adamhathcock) **Created:** 4/9/2024 **Status:** ✅ Merged **Merged:** 4/11/2024 **Merged by:** [@adamhathcock](https://github.com/adamhathcock) **Base:** `master` ← **Head:** `tar-corruption` --- ### 📝 Commits (6) - [`bf74dd8`](https://github.com/adamhathcock/sharpcompress/commit/bf74dd887a5a16f4e2787ae1e0eedd6c558ac9b8) Fix tar corruption when sizes mismatch - [`2321d9d`](https://github.com/adamhathcock/sharpcompress/commit/2321d9dbee9982da5d9240cd8bf787a576dd2bf9) fix patch - [`fdfaa8a`](https://github.com/adamhathcock/sharpcompress/commit/fdfaa8ab454bb8c4ea40f3b0ccf0d5dffce36a19) add max transfer size to tar - [`eab97a3`](https://github.com/adamhathcock/sharpcompress/commit/eab97a3f8b651a1b76860bce8081c58f79607465) calculate remaining afterwards - [`cb22321`](https://github.com/adamhathcock/sharpcompress/commit/cb223217c12321ec0b66cb1270b50f7f65c9347c) actually, transfer block is different than overall transfer - [`373637e`](https://github.com/adamhathcock/sharpcompress/commit/373637e6a7f617a6b03acc6a1b9a791efea5c122) more logic fixes ### 📊 Changes **3 files changed** (+50 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `SharpCompress.sln.DotSettings` (+5 -0) 📝 `src/SharpCompress/Utility.cs` (+44 -0) 📝 `src/SharpCompress/Writers/Tar/TarWriter.cs` (+1 -2) </details> ### 📄 Description Addresses https://github.com/adamhathcock/sharpcompress/issues/820 --- <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:19:42 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/sharpcompress#1263