mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-12 05:25:03 +00:00
[PR #891] [MERGED] Fix zip entry handling for entries with data descriptors #1308
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/891
Author: @Morilli
Created: 1/28/2025
Status: ✅ Merged
Merged: 1/28/2025
Merged by: @adamhathcock
Base:
master← Head:fix-zip-datadescriptor-header📝 Commits (5)
d2cfc18add failing testc14d18bset local header data from directory header when flag is set91e672bremove old hack trying to fix a similar thingf9a974cfix formatting37a2fa1Merge branch 'master' into fix-zip-datadescriptor-header📊 Changes
3 files changed (+19 additions, -17 deletions)
View changed files
📝
src/SharpCompress/Common/Zip/SeekableZipFilePart.cs(+1 -17)📝
src/SharpCompress/Common/Zip/SeekableZipHeaderFactory.cs(+6 -0)📝
tests/SharpCompress.Test/Zip/ZipArchiveTests.cs(+12 -0)📄 Description
See the included test for how this issue surfaces. The missing fields in the local header will now be set from the directory header if the
UsePostDataDescriptorbit is set in the local header's flags.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.