Regression test for https://github.com/Exiv2/exiv2/security/advisories/GHSA-5p8g-9xf3-gfrr
This commit is contained in:
parent
23c1cda99d
commit
dbde0bc536
BIN
test/data/issue_ghsa_5p8g_9xf3_gfrr_poc.exv
Normal file
BIN
test/data/issue_ghsa_5p8g_9xf3_gfrr_poc.exv
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 180 KiB |
BIN
test/data/issue_ghsa_5p8g_9xf3_gfrr_poc.webp
Normal file
BIN
test/data/issue_ghsa_5p8g_9xf3_gfrr_poc.webp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 180 KiB |
22
tests/bugfixes/github/test_issue_ghsa_5p8g_9xf3_gfrr.py
Normal file
22
tests/bugfixes/github/test_issue_ghsa_5p8g_9xf3_gfrr.py
Normal file
@ -0,0 +1,22 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from system_tests import CaseMeta, path
|
||||
|
||||
|
||||
class WebPImageDoWriteMetadataOutOfBoundsRead(metaclass=CaseMeta):
|
||||
"""
|
||||
Regression test for the bug described in:
|
||||
https://github.com/Exiv2/exiv2/security/advisories/GHSA-5p8g-9xf3-gfrr
|
||||
"""
|
||||
url = "https://github.com/Exiv2/exiv2/security/advisories/GHSA-5p8g-9xf3-gfrr"
|
||||
|
||||
filename1 = path("$data_path/issue_ghsa_5p8g_9xf3_gfrr_poc.webp")
|
||||
filename2 = path("$data_path/issue_ghsa_5p8g_9xf3_gfrr_poc.exv")
|
||||
commands = ["$exiv2 in $filename1"]
|
||||
stdout = [""]
|
||||
stderr = [
|
||||
"""Warning: Directory Nikon3, entry 0x002b has unknown Exif (TIFF) type 64002; setting type size 1.
|
||||
Warning: Directory Nikon3, entry 0x002b has unknown Exif (TIFF) type 64002; setting type size 1.
|
||||
$filename1: Could not write metadata to file: $kerCorruptedMetadata
|
||||
"""]
|
||||
retval = [1]
|
||||
Loading…
Reference in New Issue
Block a user