From 7d9deba07166e184ea698ea724554ebfeded6ae8 Mon Sep 17 00:00:00 2001 From: Kevin Backhouse Date: Sun, 20 Nov 2022 15:58:55 +0000 Subject: [PATCH] Regression test for https://github.com/Exiv2/exiv2/issues/2423 --- test/data/issue_2423_poc.mp4 | Bin 0 -> 129 bytes tests/bugfixes/github/test_issue_2423.py | 13 +++++++++++++ .../regression_tests/test_regression_allfiles.py | 1 + 3 files changed, 14 insertions(+) create mode 100644 test/data/issue_2423_poc.mp4 create mode 100644 tests/bugfixes/github/test_issue_2423.py diff --git a/test/data/issue_2423_poc.mp4 b/test/data/issue_2423_poc.mp4 new file mode 100644 index 0000000000000000000000000000000000000000..bf8171b6a7e9fd3e57710fa3d4d221636adc5383 GIT binary patch literal 129 zcmZQzU=T?wsVvCL%+6=vNG_@@@?-!4k>Zl#l$UV8z*SkEUzDO+Y<=Ft;QxQ!09U^` oA&&olFgWMu78C(dYH@LX(f_*pAic=oQ0rla{|x{CBa5N30a58E^Z)<= literal 0 HcmV?d00001 diff --git a/tests/bugfixes/github/test_issue_2423.py b/tests/bugfixes/github/test_issue_2423.py new file mode 100644 index 00000000..0c633cf6 --- /dev/null +++ b/tests/bugfixes/github/test_issue_2423.py @@ -0,0 +1,13 @@ +# -*- coding: utf-8 -*- + +from system_tests import CaseMeta, check_no_ASAN_UBSAN_errors + +class issue_2423_QuickTimeVideo_sampleDesc_long_running(metaclass=CaseMeta): + url = "https://github.com/Exiv2/exiv2/issues/2423" + filename = "$data_path/issue_2423_poc.mp4" + commands = ["$exiv2 $filename"] + retval = [1] + stderr = ["""$exiv2_exception_message $filename: +$kerCorruptedMetadata +"""] + stdout = [""] diff --git a/tests/regression_tests/test_regression_allfiles.py b/tests/regression_tests/test_regression_allfiles.py index 25ba4c0e..bf2d04fb 100644 --- a/tests/regression_tests/test_regression_allfiles.py +++ b/tests/regression_tests/test_regression_allfiles.py @@ -65,6 +65,7 @@ def get_valid_files(data_dir): "issue_2377_poc.mp4", "issue_2383_poc.mp4", "issue_2393_poc.mp4", + "issue_2423_poc.mp4", "2018-01-09-exiv2-crash-001.tiff", "cve_2017_1000126_stack-oob-read.webp", "exiv2-bug1247.jpg",