mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-10 21:22:11 +00:00
[PR #805] [MERGED] Zip: Use last modified time from basic header when validating zip decryption #1243
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/805
Author: @DannyBoyk
Created: 1/26/2024
Status: ✅ Merged
Merged: 1/29/2024
Merged by: @adamhathcock
Base:
master← Head:804_Fix_ZIP_Decryption📝 Commits (1)
14c9735Zip: Use last modified time from basic header when validating zip decryption📊 Changes
4 files changed (+23 additions, -5 deletions)
View changed files
📝
src/SharpCompress/Common/Zip/Headers/DirectoryEntryHeader.cs(+2 -2)📝
src/SharpCompress/Common/Zip/Headers/LocalEntryHeader.cs(+2 -2)📝
src/SharpCompress/Common/Zip/Headers/ZipFileEntry.cs(+18 -0)📝
src/SharpCompress/Common/Zip/PkwareTraditionalEncryptionData.cs(+1 -1)📄 Description
The last modified time used for zip decryption validation must be the one from the basic header. If UnixTimeExtraFields are present, the previous implementation was attempting to verify against that value instead.
Fixed #804
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.