Skip to content

Commit

Permalink
Add comment for invalid zips
Browse files Browse the repository at this point in the history
  • Loading branch information
Stuk committed May 31, 2020
1 parent 7a99db8 commit 2569772
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/jszip.js
@@ -1,6 +1,6 @@
/*!
JSZip v3.3.0 - A JavaScript class for generating and reading zip files
JSZip v3.4.0 - A JavaScript class for generating and reading zip files
<http://stuartk.com/jszip>
(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
Expand Down
2 changes: 1 addition & 1 deletion dist/jszip.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions lib/zipEntry.js
Expand Up @@ -200,6 +200,8 @@ ZipEntry.prototype = {
this.extraFields = {};
}

// Handle invalid extra fields
// https://github.com/Stuk/jszip/issues/543
while (reader.index + 4 < end) {
extraFieldId = reader.readInt(2);
extraFieldLength = reader.readInt(2);
Expand Down

0 comments on commit 2569772

Please sign in to comment.