Regression test for https://github.com/Exiv2/exiv2/security/advisories/GHSA-g44w-q3vm-gwjq
(cherry picked from commit 756f28197d39c4d2230f2e02ff214cbfd1cd032e)main
parent
7251a96da6
commit
e492285d3a
Binary file not shown.
After Width: | Height: | Size: 347 B |
@ -0,0 +1,20 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
from system_tests import CaseMeta, CopyTmpFiles, path, check_no_ASAN_UBSAN_errors
|
||||||
|
|
||||||
|
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 -p R $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
|
Loading…
Reference in New Issue