mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-04 05:25:00 +00:00
[Bug report][Regression] Extra "garbage" added when extracting single huge file #496
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?
Originally created by @EmilBode on GitHub (Feb 15, 2022).
I'm sorry I can't give a fully reproducible example, as I've only encountered this bug in confidential data. Maybe others can weigh in.
Issue
When extracting a single file out of a zip-archive, sometimes the extracted file gets extra garbage added at the end.
Commonalities
This happens in several files, but they are much alike:
The issue only happens with SharpCompress 0.30.0, but extracting with 0.26.0 works fine.
@adamhathcock commented on GitHub (Feb 16, 2022):
There was probably some adjustment of a bug or logic.
Though, I'm interested in your second point wondering how valid a zip file it is. Maybe it's allowed by spec but just something most people don't encounter?