Regression test for https://github.com/Exiv2/exiv2/security/advisories/GHSA-9jh3-fcc3-g6hv
(cherry picked from commit 61cb1a1ca15282bee76c33eb9abdb416ac366471)main
parent
7251a96da6
commit
bc0f4f5bd0
Binary file not shown.
@ -0,0 +1,21 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
from system_tests import CaseMeta, CopyTmpFiles, path
|
||||||
|
@CopyTmpFiles("$data_path/issue_ghsa_9jh3_fcc3_g6hv_poc.jpg")
|
||||||
|
|
||||||
|
class JpegBasePrintStructureInfiniteLoop(metaclass=CaseMeta):
|
||||||
|
"""
|
||||||
|
Regression test for the bug described in:
|
||||||
|
https://github.com/Exiv2/exiv2/security/advisories/GHSA-9jh3-fcc3-g6hv
|
||||||
|
"""
|
||||||
|
url = "https://github.com/Exiv2/exiv2/security/advisories/GHSA-9jh3-fcc3-g6hv"
|
||||||
|
|
||||||
|
filename = path("$tmp_path/issue_ghsa_9jh3_fcc3_g6hv_poc.jpg")
|
||||||
|
commands = ["$exiv2 -d I rm $filename"]
|
||||||
|
stdout = [""]
|
||||||
|
stderr = [
|
||||||
|
"""Warning: JPEG format error, rc = 2
|
||||||
|
Exiv2 exception in erase action for file $filename:
|
||||||
|
$kerFailedToReadImageData
|
||||||
|
"""]
|
||||||
|
retval = [1]
|
Loading…
Reference in New Issue