You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
686 B
Python
28 lines
686 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
import system_tests
|
|
import unittest
|
|
|
|
@unittest.skip("Skipping test using option -pR (only for Debug mode)")
|
|
class SubBoxLengthDataBufAbort(metaclass=system_tests.CaseMeta):
|
|
|
|
url = "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-9145"
|
|
|
|
filename = system_tests.path(
|
|
"$data_path/4-DataBuf-abort-1"
|
|
)
|
|
commands = ["$exiv2 -pR $filename"]
|
|
stdout = [
|
|
"""STRUCTURE OF JPEG2000 FILE: $filename
|
|
address | length | box | data
|
|
0 | 12 | jP |
|
|
12 | 20 | jp2h |
|
|
"""
|
|
]
|
|
stderr = [
|
|
"""$exiv2_exception_message $filename:
|
|
$kerCorruptedMetadata
|
|
"""
|
|
]
|
|
retval = [1]
|