We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a66a569 commit ae622a8Copy full SHA for ae622a8
1 file changed
src/Zip/ZipOutputStream.cs
@@ -38,7 +38,8 @@
38
// exception statement from your version.
39
40
// HISTORY
41
-// 22-12-2009 DavidPierson Added AES support
+// 22-12-2009 Z-1649 Added AES support
42
+// 22-02-2010 Z-1648 Zero byte entries would create invalid zip files
43
44
using System;
45
using System.IO;
@@ -473,7 +474,7 @@ public void CloseEntry()
473
474
475
// First finish the deflater, if appropriate
476
if (curMethod == CompressionMethod.Deflated) {
- if (size > 0) {
477
+ if (size >= 0) {
478
base.Finish();
479
csize = deflater_.TotalOut;
480
}
0 commit comments