SharpZipLib icon indicating copy to clipboard operation
SharpZipLib copied to clipboard

I zip a directory, but a file which in zipped file has size 4,294,967,295

Open ShimizuShiori opened this issue 8 years ago • 2 comments

Steps to reproduce

  1. use ZipOutputStream to zip a directory
  2. dynamic create a LOG FILE to record the exceptions in zip process
  3. when all files done, put the LOG FILE into ZipOutputStream via a ZipEntry

Expected behavior

the zip file contains the LOG FILE and it can be opened

Actual behavior

the zip file contains the LOG FILE but is can not be opened , because it's size is 4,294,967,295

Version of SharpZipLib

0.86.0.518

Obtained from (place an x between the brackets for all that apply)

  • [ ] Compiled from source
  • branch: _______
  • commit: _______
  • [ ] Downloaded DLL from GitHub
  • [ ] Downloaded DLL from SourceForge
  • [ ] Downloaded DLL from _______
  • [ ] DLL included as part of
  • Package installed using:
  • [x] NuGet
  • [ ] MyGet
  • [ ] Chocolatey

ps. My English is poor, thank you for your attention

ShimizuShiori avatar Feb 24 '18 06:02 ShimizuShiori

The scenario seems a bit confusing, are you adding the log file that is actively being written to into the archive? That would certainly cause some issues.

Is the file on disk (before archiving) also the same size?

You can use software like glogg to view the contents of huge files.

piksel avatar May 12 '18 11:05 piksel

I am closing this as I am not able to reproduce. I'll reopen it again if you still experience this problem.

piksel avatar Jun 06 '18 10:06 piksel