Blame tests/bugfixes/github/test_issue_216.py
|
Packit |
01d647 |
# -*- coding: utf-8 -*-
|
|
Packit |
01d647 |
|
|
Packit |
01d647 |
import system_tests
|
|
Packit |
01d647 |
import unittest
|
|
Packit |
01d647 |
|
|
Packit |
01d647 |
@unittest.skip("Skipping test using option -pR (only for Debug mode)")
|
|
Packit |
01d647 |
class UncontrolledRecursion(metaclass=system_tests.CaseMeta):
|
|
Packit |
01d647 |
url = "https://github.com/Exiv2/exiv2/issues/216"
|
|
Packit |
01d647 |
|
|
Packit |
01d647 |
filename = system_tests.path(
|
|
Packit |
01d647 |
"$data_path/"
|
|
Packit |
01d647 |
"exiv2_0-26_exiv2_uncontrolled-recursion_printIFDStructure.tif"
|
|
Packit |
01d647 |
)
|
|
Packit |
01d647 |
|
|
Packit |
01d647 |
commands = ["$exiv2 -pR $filename"]
|
|
Packit |
01d647 |
retval = [1]
|
|
Packit |
01d647 |
stdout = [
|
|
Packit |
01d647 |
"""STRUCTURE OF TIFF FILE (MM): $filename
|
|
Packit |
01d647 |
address | tag | type | count | offset | value
|
|
Packit |
01d647 |
10 | 0x0100 ImageWidth | SHORT | 1 | | 1
|
|
Packit |
01d647 |
22 | 0x0103 Compression | SHORT | 0 | |
|
|
Packit |
01d647 |
34 | 000000 GPSVersionID | BYTE | 0 | | """
|
|
Packit |
01d647 |
]
|
|
Packit |
01d647 |
|
|
Packit |
01d647 |
compare_stderr = system_tests.check_no_ASAN_UBSAN_errors
|