System.DivideByZeroException #349

Closed
opened 2026-01-29 22:10:31 +00:00 by claunia · 2 comments
Owner

Originally created by @antim0118 on GitHub (Mar 30, 2019).

i get System.DivideByZeroException when i try to compress empty txt file.
screenshot
ArchiveType = Zip
CompressType = BZip2

Originally created by @antim0118 on GitHub (Mar 30, 2019). i get System.DivideByZeroException when i try to compress empty txt file. [screenshot](https://imgur.com/a/VCamdGH) ArchiveType = Zip CompressType = BZip2
Author
Owner

@antim0118 commented on GitHub (Mar 30, 2019):

File: SharpCompress\Compressors\BZip2\CBZip2OutputStream.cs
Error line: 1344

@antim0118 commented on GitHub (Mar 30, 2019): File: SharpCompress\Compressors\BZip2\CBZip2OutputStream.cs Error line: 1344
Author
Owner

@adamhathcock commented on GitHub (Apr 1, 2019):

My first thought is "don't do that." but I guess zip allows for empty files?

You could just set to no compression on that entry.

@adamhathcock commented on GitHub (Apr 1, 2019): My first thought is "don't do that." but I guess zip allows for empty files? You could just set to no compression on that entry.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/sharpcompress#349