From d7f4c0ee323b60cf7845e19e611cbfdd4381e79b Mon Sep 17 00:00:00 2001 From: Kenneth Skovhede Date: Fri, 10 Mar 2017 23:10:06 +0100 Subject: [PATCH] Fixed an error in the zip64 central end of header: the signature + length (12 bytes) are not included in the reported length. --- src/SharpCompress/Writers/Zip/ZipWriter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SharpCompress/Writers/Zip/ZipWriter.cs b/src/SharpCompress/Writers/Zip/ZipWriter.cs index f40726c6..6f38a28d 100644 --- a/src/SharpCompress/Writers/Zip/ZipWriter.cs +++ b/src/SharpCompress/Writers/Zip/ZipWriter.cs @@ -225,7 +225,7 @@ namespace SharpCompress.Writers.Zip if (zip64) { - var recordlen = 4 + 8 + 2 + 2 + 4 + 4 + 8 + 8 + 8 + 8; + var recordlen = 2 + 2 + 4 + 4 + 8 + 8 + 8 + 8; // Write zip64 end of central directory record OutputStream.Write(new byte[] { 80, 75, 6, 6 }, 0, 4);