forked from Exiv2/exiv2
-
Notifications
You must be signed in to change notification settings - Fork 2
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 Exiv2#1834 from kevinbackhouse/FixIssue1833
Replace assertion with an error message
- Loading branch information
Showing
3 changed files
with
25 additions
and
1 deletion.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,17 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
from system_tests import CaseMeta, path, check_no_ASAN_UBSAN_errors | ||
|
||
class TiffMnEntryDoCountInvalidTiffType(metaclass=CaseMeta): | ||
""" | ||
Test for the bug described in: | ||
https://github.com/Exiv2/exiv2/issues/1833 | ||
""" | ||
url = "https://github.com/Exiv2/exiv2/issues/1833" | ||
|
||
filename = path("$data_path/issue_1833_poc.jpg") | ||
commands = ["$exiv2 -pS $filename"] | ||
stderr = [""] | ||
retval = [0] | ||
|
||
compare_stdout = check_no_ASAN_UBSAN_errors |