mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-09-22 23:15:20 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user