Fixed an error in the zip64 central end of header: the signature + length (12 bytes) are not included in the reported length.

This commit is contained in:
Kenneth Skovhede
2017-03-10 23:10:06 +01:00
parent 1263c0d976
commit d7f4c0ee32

View File

@@ -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);