Skip to content

Commit

Permalink
fixed zip64 entry condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Benndorf committed Jul 4, 2024
1 parent ea87bf3 commit 4ffedb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Open/directory.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ module.exports = function centralDirectory(source, options) {
// https://github.com/golang/go/blob/master/src/archive/zip/reader.go#L503
// For zip64 files, need to find zip64 central directory locator header to extract
// relative offset for zip64 central directory record.
if (vars.numberOfRecords == 0xffff|| vars.numberOfRecords == 0xffff ||
if (vars.diskNumber == 0xffff || vars.numberOfRecords == 0xffff ||
vars.offsetToStartOfCentralDirectory == 0xffffffff) {

// Offset to zip64 CDL is 20 bytes before normal CDR
Expand Down

0 comments on commit 4ffedb7

Please sign in to comment.