Skip to content

Commit cfd2856

Browse files
kevinbackhousekmilos
authored andcommitted
Regression test for GHSA-496f-x7cq-cq39
1 parent 8504a73 commit cfd2856

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed
1.01 KB
Loading
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# -*- coding: utf-8 -*-
2+
3+
from system_tests import CaseMeta, CopyTmpFiles, path, check_no_ASAN_UBSAN_errors
4+
@CopyTmpFiles("$data_path/issue_ghsa_496f_x7cq_cq39_poc.jpg")
5+
6+
class EpsImageDeleteSegV(metaclass=CaseMeta):
7+
"""
8+
Regression test for the bug described in:
9+
https://github.com/Exiv2/exiv2/security/advisories/GHSA-496f-x7cq-cq39
10+
"""
11+
url = "https://github.com/Exiv2/exiv2/security/advisories/GHSA-496f-x7cq-cq39"
12+
13+
filename = path("$tmp_path/issue_ghsa_496f_x7cq_cq39_poc.jpg")
14+
commands = ["$exiv2 rm $filename"]
15+
stdout = [""]
16+
stderr = [
17+
"""$exception_in_erase """ + filename + """:
18+
$kerCorruptedMetadata
19+
"""]
20+
retval = [1]

tests/regression_tests/test_regression_allfiles.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ def get_valid_files(data_dir):
121121
"issue_ghsa_hrw9_ggg3_3r4r_poc.jpg",
122122
"issue_ghsa_g9xm_7538_mq8w_poc.mov",
123123
"issue_ghsa_38h4_fx85_qcx7_poc.tiff",
124+
"issue_ghsa_496f_x7cq_cq39_poc.jpg",
124125
"pocIssue283.jpg",
125126
"poc_1522.jp2",
126127
"xmpsdk.xmp",

0 commit comments

Comments
 (0)