sharpcompress
sharpcompress copied to clipboard
[Bug report][Regression] Extra "garbage" added when extracting single huge file
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:
- All zipfiles are Zip64-compressed
- All zipfiles have extra data after the real payload. This is expected (due to the source), but can be ignored.
- All of the zipfiles are huge, the smallest is just under 64GB
- The file to be extracted is also quite large, >4 GB in all cases
The issue only happens with SharpCompress 0.30.0, but extracting with 0.26.0 works fine.
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?