diff --git a/test/data/issue_1841_poc.webp b/test/data/issue_1841_poc.webp new file mode 100644 index 00000000..1ea6e538 Binary files /dev/null and b/test/data/issue_1841_poc.webp differ diff --git a/tests/bugfixes/github/test_issue_1841.py b/tests/bugfixes/github/test_issue_1841.py new file mode 100644 index 00000000..64640ebf --- /dev/null +++ b/tests/bugfixes/github/test_issue_1841.py @@ -0,0 +1,18 @@ +# -*- coding: utf-8 -*- + +from system_tests import CaseMeta, path + +class MemoryLeakWebPImageDecodeChunks(metaclass=CaseMeta): + """ + Test for the bug described in: + https://github.com/Exiv2/exiv2/issues/1841 + """ + url = "https://github.com/Exiv2/exiv2/issues/1841" + + filename = path("$data_path/issue_1841_poc.webp") + commands = ["$exiv2 $filename"] + stdout = [""] + stderr = ["""$exiv2_exception_message $filename: +This does not look like a TIFF image +"""] + retval = [1]