mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-12 05:25:03 +00:00
[PR #786] [MERGED] LZMA EOS marker detection #1227
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/786
Author: @Erior
Created: 12/9/2023
Status: ✅ Merged
Merged: 12/11/2023
Merged by: @adamhathcock
Base:
master← Head:feature/Issue-774📝 Commits (1)
0320db6LZMA EOS marker detection📊 Changes
3 files changed (+14 additions, -2 deletions)
View changed files
📝
src/SharpCompress/Compressors/LZMA/LzmaStream.cs(+11 -2)📝
tests/SharpCompress.Test/SevenZip/SevenZipArchiveTests.cs(+3 -0)➕
tests/TestArchives/Archives/7Zip.eos.7z(+0 -0)📄 Description
The DataError in #774 comes from the LZMA stream having EOS bytes at the end, we would need to check if the stream has it or not before raising DataError.
Added a test archive generated from 7za with the -meos flag set.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.