-
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.
Use Safe::add() in tiffvisitor_int.cpp
- Loading branch information
1 parent
9767e37
commit 62705a6
Showing
9 changed files
with
101 additions
and
114 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
1 change: 0 additions & 1 deletion
1
test/data/test_reference_files/2018-01-09-exiv2-crash-003.tiff.out
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
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 |
---|---|---|
@@ -1,23 +1,17 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
import system_tests | ||
|
||
from system_tests import check_no_ASAN_UBSAN_errors | ||
|
||
class TestCvePoC(metaclass=system_tests.CaseMeta): | ||
|
||
url = "https://github.com/Exiv2/exiv2/issues/75" | ||
|
||
filename = "$data_path/008-invalid-mem" | ||
commands = ["$exiv2 " + filename] | ||
stdout = [""] | ||
stderr = ["""$exiv2_exception_message """ + filename + """: | ||
$kerCorruptedMetadata | ||
"""] | ||
retval = [1] | ||
commands = ["$exiv2 -q " + filename] | ||
|
||
stderr = [""] | ||
retval = [0] | ||
|
||
compare_stdout = check_no_ASAN_UBSAN_errors | ||
|
||
def compare_stderr(self, i, command, got_stderr, expected_stderr): | ||
""" | ||
Only check that an exception is thrown for this file | ||
ignore all the warnings on stderr on purpose. | ||
""" | ||
self.assertIn(expected_stderr, got_stderr) |
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