-
Notifications
You must be signed in to change notification settings - Fork 282
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Regression test for GHSA-8949-hhfh-j7rj
- Loading branch information
1 parent
b3de96f
commit c372f26
Showing
3 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
from system_tests import CaseMeta, path | ||
|
||
|
||
class Jp2ImageEncodeJp2HeaderOutOfBoundsRead(metaclass=CaseMeta): | ||
""" | ||
Regression test for the bug described in: | ||
https://github.com/Exiv2/exiv2/security/advisories/GHSA-8949-hhfh-j7rj | ||
""" | ||
url = "https://github.com/Exiv2/exiv2/security/advisories/GHSA-8949-hhfh-j7rj" | ||
|
||
filename1 = path("$data_path/issue_ghsa_8949_hhfh_j7rj_poc.jp2") | ||
filename2 = path("$data_path/issue_ghsa_8949_hhfh_j7rj_poc.exv") | ||
commands = ["$exiv2 in $filename1"] | ||
stdout = [""] | ||
stderr = [ | ||
"""Error: XMP Toolkit error 201: XML parsing failure | ||
Warning: Failed to decode XMP metadata. | ||
$filename1: Could not write metadata to file: $kerCorruptedMetadata | ||
"""] | ||
retval = [1] |