diff --git a/test/data/issue_2385_poc.tiff b/test/data/issue_2385_poc.tiff new file mode 100644 index 00000000..ca88a97c Binary files /dev/null and b/test/data/issue_2385_poc.tiff differ diff --git a/tests/bugfixes/github/test_issue_2385.py b/tests/bugfixes/github/test_issue_2385.py new file mode 100644 index 00000000..5d5b4039 --- /dev/null +++ b/tests/bugfixes/github/test_issue_2385.py @@ -0,0 +1,11 @@ +# -*- coding: utf-8 -*- + +from system_tests import CaseMeta, check_no_ASAN_UBSAN_errors + +class issue_2385_printColorCompensationFilter_integer_overflow(metaclass=CaseMeta): + url = "https://github.com/Exiv2/exiv2/issues/2385" + filename = "$data_path/issue_2385_poc.tiff" + commands = ["$exiv2 -q -pa $filename"] + retval = [0] + stderr = [""] + compare_stdout = check_no_ASAN_UBSAN_errors diff --git a/tests/regression_tests/test_regression_allfiles.py b/tests/regression_tests/test_regression_allfiles.py index eacca4f8..55baa5b5 100644 --- a/tests/regression_tests/test_regression_allfiles.py +++ b/tests/regression_tests/test_regression_allfiles.py @@ -103,6 +103,7 @@ def get_valid_files(data_dir): "issue_2320_poc.jpg", "issue_2339_poc.tiff", "issue_2352_poc.jpg", + "issue_2385_poc.tiff", "issue_ghsa_583f_w9pm_99r2_poc.jp2", "issue_ghsa_7569_phvm_vwc2_poc.jp2", "issue_ghsa_mxw9_qx4c_6m8v_poc.jp2",