mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-10 05:31:29 +00:00
DivideByZeroException throw when using Zip with BZip2 #727
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 @zhuxb711 on GitHub (Nov 27, 2025).
Originally assigned to: @Copilot on GitHub.
Should fixed this issue since we need to put empty folder or empty files into Zip.
Which is very common scenario. Because you would never know which kinds of data that user wants to compress.
On the other hand, Zip allows empty file or empty folder. We could not filter away those zero-byte files or empty folders which would be very confusing.
lastis -1 here9433e06b93/src/SharpCompress/Compressors/BZip2/CBZip2OutputStream.cs (L1417)@zhuxb711 commented on GitHub (Nov 29, 2025):
Compress using Zip with BZip2 works fine in 0.42 now
@adamhathcock commented on GitHub (Nov 29, 2025):
🥳