mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-09 21:24:08 +00:00
[PR #785] [MERGED] Handle tar files generated with tar -H oldgnu that has large uid/gid values #1226
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?
📋 Pull Request Information
Original PR: https://github.com/adamhathcock/sharpcompress/pull/785
Author: @Erior
Created: 12/4/2023
Status: ✅ Merged
Merged: 12/11/2023
Merged by: @adamhathcock
Base:
master← Head:feature/Issue-782📝 Commits (1)
18c7f58Handle tar files generated with tar -H oldgnu that has large uid/gid values📊 Changes
3 files changed (+24 additions, -3 deletions)
View changed files
📝
src/SharpCompress/Common/Tar/Headers/TarHeader.cs(+21 -3)📝
tests/SharpCompress.Test/Tar/TarReaderTests.cs(+3 -0)➕
tests/TestArchives/Archives/Tar.oldgnu.tar.gz(+0 -0)📄 Description
The tar file in #782 seems to be generated in oldgnu format, and sharpcompress failed to extract gid in the provided test, I have generated a general test with large value for both uid and gid using the normal setup of files.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.