Skip to content

Commit 8331cb9

Browse files
committed
zip: fix zip64 central directory record size and made by version.
1 parent 327c0fb commit 8331cb9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/archivers/zip/zip-archive-output-stream.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,10 +211,10 @@ ZipArchiveOutputStream.prototype._writeCentralDirectoryZip64 = function() {
211211
this.write(zipUtil.getLongBytes(constants.SIG_ZIP64_EOCD));
212212

213213
// size of the ZIP64 EOCD record
214-
this.write(zipUtil.getEightBytes((constants.SHORT * 2) + (constants.LONG * 2) + (8 * 4)));
214+
this.write(zipUtil.getEightBytes(56));
215215

216216
// version made by
217-
this.write(zipUtil.getShortBytes((constants.PLATFORM_UNIX << 8) | constants.VERSION_MADEBY));
217+
this.write(zipUtil.getShortBytes(constants.MIN_VERSION_ZIP64));
218218

219219
// version to extract
220220
this.write(zipUtil.getShortBytes(constants.MIN_VERSION_ZIP64));

0 commit comments

Comments
 (0)