-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Determine Zip64 status entry-by-entry instead of for entire file.
Fixes a bug for zip files with mixed Zip64 and not Zip64 entries, which resulted in an incorrect data descriptor length. The bug is seen when a Zip64 entry precedes a non-Zip64 entry, in which case the data descriptor would have been assumed to be larger than it is, resulting in an incorrect bomb warning due to a perceived overlap with the next entry. This commit determines and saves the Zip64 status for each entry based on the central directory, and then computes the length of each data descriptor accordingly.
- Loading branch information
Showing
4 changed files
with
5 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters