Bug 1867315 - Check ENDSIG for ZIP64 too r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D195109
This commit is contained in:
@@ -715,7 +715,7 @@ nsresult nsZipArchive::BuildFileList(PRFileDesc* aFd)
|
||||
sig = 0;
|
||||
} /* while reading central directory records */
|
||||
|
||||
if (sig != ENDSIG) {
|
||||
if (sig != ENDSIG && sig != ENDSIG64) {
|
||||
return NS_ERROR_FILE_CORRUPTED;
|
||||
}
|
||||
|
||||
|
||||
@@ -83,6 +83,7 @@ typedef struct ZipEnd_ {
|
||||
#define LOCALSIG 0x04034B50l
|
||||
#define CENTRALSIG 0x02014B50l
|
||||
#define ENDSIG 0x06054B50l
|
||||
#define ENDSIG64 0x6064B50l
|
||||
|
||||
/* extra fields */
|
||||
#define EXTENDED_TIMESTAMP_FIELD 0x5455
|
||||
|
||||
Reference in New Issue
Block a user