diff --git a/test/data/issue_2393_poc.mp4 b/test/data/issue_2393_poc.mp4 new file mode 100644 index 00000000..9c751e20 Binary files /dev/null and b/test/data/issue_2393_poc.mp4 differ diff --git a/tests/bugfixes/github/test_issue_2393.py b/tests/bugfixes/github/test_issue_2393.py new file mode 100644 index 00000000..5b37dd35 --- /dev/null +++ b/tests/bugfixes/github/test_issue_2393.py @@ -0,0 +1,16 @@ +# -*- coding: utf-8 -*- + +from system_tests import CaseMeta, check_no_ASAN_UBSAN_errors + +class issue_2393_QuickTimeVideo_multipleEntriesDecoder_long_running(metaclass=CaseMeta): + url = "https://github.com/Exiv2/exiv2/issues/2393" + filename = "$data_path/issue_2393_poc.mp4" + commands = ["$exiv2 $filename"] + retval = [253] + stderr = ["""$filename: No Exif data found in the file +"""] + stdout = ["""File name : $filename +File size : 319 Bytes +MIME type : video/quicktime +Image size : 0 x 0 +"""] diff --git a/tests/regression_tests/test_regression_allfiles.py b/tests/regression_tests/test_regression_allfiles.py index 55baa5b5..01304742 100644 --- a/tests/regression_tests/test_regression_allfiles.py +++ b/tests/regression_tests/test_regression_allfiles.py @@ -64,6 +64,7 @@ def get_valid_files(data_dir): "issue_2376_poc.mp4", "issue_2377_poc.mp4", "issue_2383_poc.mp4", + "issue_2393_poc.mp4", "2018-01-09-exiv2-crash-001.tiff", "cve_2017_1000126_stack-oob-read.webp", "exiv2-bug1247.jpg",