Regression test for https://github.com/Exiv2/exiv2/security/advisories/GHSA-v5g7-46xf-h728
This commit is contained in:
parent
6373fe3195
commit
92ddbf011d
BIN
test/data/issue_ghsa_v5g7_46xf_h728_poc.exv
Executable file
BIN
test/data/issue_ghsa_v5g7_46xf_h728_poc.exv
Executable file
Binary file not shown.
18
tests/bugfixes/github/test_issue_ghsa_v5g7_46xf_h728.py
Normal file
18
tests/bugfixes/github/test_issue_ghsa_v5g7_46xf_h728.py
Normal file
@ -0,0 +1,18 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from system_tests import CaseMeta, CopyTmpFiles, path, check_no_ASAN_UBSAN_errors
|
||||
|
||||
class Jp2ImageEncodeJp2HeaderOutOfBoundsRead2(metaclass=CaseMeta):
|
||||
"""
|
||||
Regression test for the bug described in:
|
||||
https://github.com/Exiv2/exiv2/security/advisories/GHSA-v5g7-46xf-h728
|
||||
"""
|
||||
url = "https://github.com/Exiv2/exiv2/security/advisories/GHSA-v5g7-46xf-h728"
|
||||
|
||||
filename = path("$data_path/issue_ghsa_v5g7_46xf_h728_poc.exv")
|
||||
commands = ["$exiv2 $filename"]
|
||||
stdout = [""]
|
||||
stderr = ["""Exiv2 exception in print action for file $filename:
|
||||
Invalid XmpText type `'
|
||||
"""]
|
||||
retval = [1]
|
||||
Loading…
Reference in New Issue
Block a user