-
Notifications
You must be signed in to change notification settings - Fork 278
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1794 from kevinbackhouse/bmff-check-box-nesting
Enforce BMFF box nesting
- Loading branch information
Showing
5 changed files
with
117 additions
and
72 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
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
import system_tests | ||
import unittest | ||
|
||
# test needs system_tests.BT.vv['enable_bmff']=1 | ||
bSkip=system_tests.BT.verbose_version().get('enable_bmff')!='1' | ||
if bSkip: | ||
raise unittest.SkipTest('*** requires enable_bmff=1 ***') | ||
|
||
class BmffImageboxHandlerLargeAllocation(metaclass=system_tests.CaseMeta): | ||
""" | ||
Regression test for the bug described in: | ||
https://github.com/Exiv2/exiv2/issues/1793 | ||
""" | ||
url = "https://github.com/Exiv2/exiv2/issues/1793" | ||
filename = "$data_path/issue_1793_poc.heic" | ||
|
||
if bSkip: | ||
commands=[] | ||
retval=[] | ||
stdin=[] | ||
stderr=[] | ||
stdout=[] | ||
print("*** test skipped. requires enable_bmff=1***") | ||
else: | ||
commands = ["$exiv2 $filename"] | ||
stdout = [""] | ||
stderr = ["""Exiv2 exception in print action for file $filename: | ||
$kerCorruptedMetadata | ||
"""] | ||
retval = [1] |