Regression test for https://github.com/Exiv2/exiv2/security/advisories/GHSA-g44w-q3vm-gwjq
(cherry picked from commit 756f28197d39c4d2230f2e02ff214cbfd1cd032e)
This commit is contained in:
parent
7251a96da6
commit
e492285d3a
BIN
test/data/issue_ghsa_g44w_q3vm_gwjq_poc.jpg
Normal file
BIN
test/data/issue_ghsa_g44w_q3vm_gwjq_poc.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 347 B |
20
tests/bugfixes/github/test_issue_g44w_q3vm_gwjq.py
Normal file
20
tests/bugfixes/github/test_issue_g44w_q3vm_gwjq.py
Normal file
@ -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
Block a user