mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-11 05:24:56 +00:00
[PR #672] [MERGED] Corrected skip-marker on skip of uncompressed ZIP file with missing size informations. #1153
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/672
Author: @MartinDemberger
Created: 6/15/2022
Status: ✅ Merged
Merged: 6/20/2022
Merged by: @adamhathcock
Base:
master← Head:Task_477📝 Commits (3)
8b55cceBetter handling of uncompressed zip files.ece7cbfSet skip-marker when stream is skipped62c94a1Merge branch 'master' into Task_477📊 Changes
6 files changed (+54 additions, -27 deletions)
View changed files
📝
src/SharpCompress/IO/RewindableStream.cs(+6 -4)📝
src/SharpCompress/IO/SourceStream.cs(+2 -1)📝
src/SharpCompress/Readers/AbstractReader.cs(+5 -4)📝
tests/SharpCompress.Test/ArchiveTests.cs(+29 -18)📝
tests/SharpCompress.Test/Zip/ZipArchiveTests.cs(+12 -0)➕
tests/TestArchives/Archives/Zip.uncompressed.zip(+0 -0)📄 Description
I did a first try to fix this issue. I'm not sure if my fix is correct. This fixes #477
My test is not working now because there is a
EndOfStreamExceptionthrown which I don't know how to avoid or if this is correct.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.