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.
21 lines
694 B
Python
21 lines
694 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
from system_tests import CaseMeta, CopyTmpFiles, path, check_no_ASAN_UBSAN_errors
|
|
@CopyTmpFiles("$data_path/issue_ghsa_mxw9_qx4c_6m8v_poc.jp2")
|
|
|
|
class Jp2ImageEncodeJp2HeaderOutOfBoundsRead2(metaclass=CaseMeta):
|
|
"""
|
|
Regression test for the bug described in:
|
|
https://github.com/Exiv2/exiv2/security/advisories/GHSA-mxw9-qx4c-6m8v
|
|
"""
|
|
url = "https://github.com/Exiv2/exiv2/security/advisories/GHSA-mxw9-qx4c-6m8v"
|
|
|
|
filename = path("$tmp_path/issue_ghsa_mxw9_qx4c_6m8v_poc.jp2")
|
|
commands = ["$exiv2 rm $filename"]
|
|
stdout = [""]
|
|
stderr = [
|
|
"""$exception_in_erase """ + filename + """:
|
|
$kerCorruptedMetadata
|
|
"""]
|
|
retval = [1]
|