parent
858c99b4df
commit
08aa27ae37
Binary file not shown.
After Width: | Height: | Size: 65 B |
Binary file not shown.
@ -0,0 +1,25 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
import system_tests
|
||||||
|
|
||||||
|
class TestFirstPoC(system_tests.Case):
|
||||||
|
"""
|
||||||
|
Regression test for the first bug described in:
|
||||||
|
https://github.com/Exiv2/exiv2/issues/246
|
||||||
|
"""
|
||||||
|
url = "https://github.com/Exiv2/exiv2/issues/246"
|
||||||
|
|
||||||
|
filename = "{data_path}/1-string-format.jpg"
|
||||||
|
commands = ["{exiv2} -pS " + filename]
|
||||||
|
stdout = [
|
||||||
|
"""STRUCTURE OF JPEG FILE: """ + filename + """
|
||||||
|
address | marker | length | data
|
||||||
|
0 | 0xffd8 SOI
|
||||||
|
2 | 0xffe1 APP1 | 60 | Exif..II*.....0.i...........0000
|
||||||
|
"""]
|
||||||
|
|
||||||
|
|
||||||
|
stderr = ["""{exiv2_exception_message} """ + filename + """:
|
||||||
|
{kerNoImageInInputData}
|
||||||
|
"""]
|
||||||
|
retval = [1]
|
@ -0,0 +1,18 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
import system_tests
|
||||||
|
|
||||||
|
class TestFirstPoC(system_tests.Case):
|
||||||
|
"""
|
||||||
|
Regression test for the first bug described in:
|
||||||
|
https://github.com/Exiv2/exiv2/issues/253
|
||||||
|
"""
|
||||||
|
url = "https://github.com/Exiv2/exiv2/issues/253"
|
||||||
|
|
||||||
|
filename = "{data_path}/3-stringformat-outofbound-read"
|
||||||
|
commands = ["{exiv2} " + filename]
|
||||||
|
stdout = [""]
|
||||||
|
stderr = ["""{exiv2_exception_message} """ + filename + """:
|
||||||
|
{kerNotAJpeg}
|
||||||
|
"""]
|
||||||
|
retval = [1]
|
Loading…
Reference in New Issue