From dba9fba725d54e9b18d239c3fc3f8f536ea2ad9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Walenciak?= Date: Sat, 13 Jan 2018 15:52:50 +0100 Subject: [PATCH] test for issue #208 --- test/data/2018-01-09-exiv2-crash-001.tiff | Bin 0 -> 188 bytes tests/bugfixes/github/test_issue_208.py | 16 ++++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 test/data/2018-01-09-exiv2-crash-001.tiff create mode 100644 tests/bugfixes/github/test_issue_208.py diff --git a/test/data/2018-01-09-exiv2-crash-001.tiff b/test/data/2018-01-09-exiv2-crash-001.tiff new file mode 100644 index 0000000000000000000000000000000000000000..8f78f73c50d73b0f7e9ea9d8c4c2d0de72875c0f GIT binary patch literal 188 zcmebD)MjA#|DS;mc3IG*=)PS%UBl8y!m*fBc z|5A($kN*n*1^In}1O&W<(lJ09q+W%Q1w?;kn9abT!T9n&kbRgfg@I8MXfhK6$VNs6 hL&o3#IT=KOA|M@5@DNCYxXYn*P-2BqNoJZ00|1B?7(oC4 literal 0 HcmV?d00001 diff --git a/tests/bugfixes/github/test_issue_208.py b/tests/bugfixes/github/test_issue_208.py new file mode 100644 index 00000000..4f513a33 --- /dev/null +++ b/tests/bugfixes/github/test_issue_208.py @@ -0,0 +1,16 @@ +# -*- coding: utf-8 -*- + +import system_tests + + +class CVE_2017_14857(system_tests.Case): + + filename = "{data_path}/2018-01-09-exiv2-crash-001.tiff" + commands = ["{exiv2} " + filename] + retval = [1] + stdout = [""] + stderr = [ + """{exiv2_exception_msg} """ + filename + """: +""" + filename + """: The file contains data of an unknown image type""" +] +