forked from libarchive/libarchive
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Be more cautious about parsing ISO-9660 timestamps (libarchive#2330)
Some ISO images don't have valid timestamps for the root directory entry. Parsing such timestamps can generate nonsensical results, which in one case showed up as an unexpected overflow on a 32-bit system. Add some validation logic that can check whether a 7-byte or 17-byte timestamp is reasonable-looking, and use this to ignore invalid timestamps in various locations. This also requires us to be a little more careful about tracking which timestamps are actually known. Resolves issue libarchive#2329 (cherry picked from commit e939c97)
- Loading branch information
Showing
2 changed files
with
177 additions
and
21 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