[PR #835] [MERGED] Prevent infinite loop when reading corrupted archive #1273

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

📋 Pull Request Information

Original PR: https://github.com/adamhathcock/sharpcompress/pull/835
Author: @blokyk
Created: 4/24/2024
Status: Merged
Merged: 4/24/2024
Merged by: @adamhathcock

Base: masterHead: fix-736


📝 Commits (2)

  • dbbc7c8 fix(tar): prevent infinite loop when reading corrupted archive
  • 9483856 fmt

📊 Changes

3 files changed (+19 additions, -0 deletions)

View changed files

📝 src/SharpCompress/Archives/Tar/TarArchive.cs (+4 -0)
📝 tests/SharpCompress.Test/Tar/TarReaderTests.cs (+15 -0)
tests/TestArchives/Archives/TarCorrupted.tar (+0 -0)

📄 Description

Fixing another infinite loop when reading corrupted tar archives. Tries to fix #736


🔄 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/835 **Author:** [@blokyk](https://github.com/blokyk) **Created:** 4/24/2024 **Status:** ✅ Merged **Merged:** 4/24/2024 **Merged by:** [@adamhathcock](https://github.com/adamhathcock) **Base:** `master` ← **Head:** `fix-736` --- ### 📝 Commits (2) - [`dbbc7c8`](https://github.com/adamhathcock/sharpcompress/commit/dbbc7c81321e7e3e20f5d610a005f8dfbadd1e65) fix(tar): prevent infinite loop when reading corrupted archive - [`9483856`](https://github.com/adamhathcock/sharpcompress/commit/9483856439950fe8c5dcecebdc97be3bbeb6cb15) fmt ### 📊 Changes **3 files changed** (+19 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `src/SharpCompress/Archives/Tar/TarArchive.cs` (+4 -0) 📝 `tests/SharpCompress.Test/Tar/TarReaderTests.cs` (+15 -0) ➕ `tests/TestArchives/Archives/TarCorrupted.tar` (+0 -0) </details> ### 📄 Description Fixing another infinite loop when reading corrupted tar archives. Tries to fix #736 --- <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:45 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/sharpcompress#1273