Add tests for #306
This commit is contained in:
parent
a227fcda39
commit
234e5794f6
BIN
test/data/pocIssue306
Normal file
BIN
test/data/pocIssue306
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 86 KiB |
17
tests/bugfixes/github/test_CVE_2018_10999.py
Normal file
17
tests/bugfixes/github/test_CVE_2018_10999.py
Normal file
@ -0,0 +1,17 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import system_tests
|
||||
|
||||
|
||||
class TestCvePoC(metaclass=system_tests.CaseMeta):
|
||||
|
||||
url = "https://github.com/Exiv2/exiv2/issues/306"
|
||||
|
||||
filename = "$data_path/pocIssue306"
|
||||
commands = ["$exiv2 -et " + filename]
|
||||
retval = [1]
|
||||
stdout = [""]
|
||||
stderr = [
|
||||
"""$exception_in_extract """ + filename + """:
|
||||
$kerFailedToReadImageData
|
||||
"""]
|
||||
@ -25,3 +25,4 @@ kerNoImageInInputData: Input data does not contain a valid image
|
||||
addition_overflow_message: Overflow in addition
|
||||
exiv2_exception_message: Exiv2 exception in print action for file
|
||||
exiv2_overflow_exception_message: std::overflow_error exception in print action for file
|
||||
exception_in_extract: Exiv2 exception in extract action for file
|
||||
|
||||
Loading…
Reference in New Issue
Block a user