Skip to content

Commit 6cc44ae

Browse files
committed
test(quicktimevideo) add poc for #2340
1 parent 337fe18 commit 6cc44ae

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

test/data/issue_2340_poc.mp4

80 Bytes
Binary file not shown.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# -*- coding: utf-8 -*-
2+
3+
from system_tests import CaseMeta, check_no_ASAN_UBSAN_errors
4+
5+
class issue_2320_printDegrees_integer_overflow(metaclass=CaseMeta):
6+
url = "https://github.com/Exiv2/exiv2/issues/2340"
7+
filename = "$data_path/issue_2340_poc.mp4"
8+
commands = ["$exiv2 -q -pa $filename"]
9+
retval = [1]
10+
stderr = ["""$exiv2_exception_message $filename:
11+
$kerCorruptedMetadata
12+
"""]
13+
compare_stdout = check_no_ASAN_UBSAN_errors

tests/regression_tests/test_regression_allfiles.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ def get_valid_files(data_dir):
5858
"issue_2190_poc.jp2",
5959
# non-zero return code files, most of them are security POC so we don't
6060
# really need to worry about them here
61+
"issue_2340_poc.mp4",
6162
"2018-01-09-exiv2-crash-001.tiff",
6263
"cve_2017_1000126_stack-oob-read.webp",
6364
"exiv2-bug1247.jpg",

0 commit comments

Comments
 (0)