You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
782 B
Python
23 lines
782 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
from system_tests import CaseMeta, CopyTmpFiles, path, check_no_ASAN_UBSAN_errors
|
|
import unittest
|
|
|
|
@unittest.skip("Skipping test using option -pR (only for Debug mode)")
|
|
class ImagePrintIFDStructureZeroCountAssert(metaclass=CaseMeta):
|
|
"""
|
|
Regression test for the bug described in:
|
|
https://github.com/Exiv2/exiv2/security/advisories/GHSA-g44w-q3vm-gwjq
|
|
"""
|
|
url = "https://github.com/Exiv2/exiv2/security/advisories/GHSA-g44w-q3vm-gwjq"
|
|
|
|
filename = path("$data_path/issue_ghsa_g44w_q3vm_gwjq_poc.jpg")
|
|
commands = ["$exiv2 -pR $filename"]
|
|
stderr = ["""invalid type in tiff structure0
|
|
Exiv2 exception in print action for file $filename:
|
|
$kerInvalidTypeValue
|
|
"""]
|
|
retval = [1]
|
|
|
|
compare_stdout = check_no_ASAN_UBSAN_errors
|