sharpcompress icon indicating copy to clipboard operation
sharpcompress copied to clipboard

[Bug report][Regression] Extra "garbage" added when extracting single huge file

Open EmilBode opened this issue 3 years ago • 1 comments

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.

EmilBode avatar Feb 15 '22 13:02 EmilBode

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?

adamhathcock avatar Feb 16 '22 08:02 adamhathcock