-
Notifications
You must be signed in to change notification settings - Fork 182
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix size 0 handling in avifParse() (#2152)
header.size in avifParse is not the raw value that is found in the input stream. It is calculated in avifROStreamReadBoxHeaderPartial. So when handling size == 0 in avifParse(), we cannot use header.size since it may be 0 in legit cases (where the box itself is empty). This PR adds a new member to avifBoxHeader which stores the actual raw size found in the input stream and uses that in avifParse(). Also handle the isSizeZeroBox in avifPeekCompatibleFileType.
- Loading branch information
Showing
3 changed files
with
16 additions
and
9 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