Skip to content

Commit

Permalink
Regression test for #1887
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinbackhouse committed Sep 1, 2021
1 parent cb16324 commit 9c4f9c7
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
Binary file added test/data/issue_1887_poc.crw
Binary file not shown.
18 changes: 18 additions & 0 deletions tests/bugfixes/github/test_issue_1887.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# -*- coding: utf-8 -*-

from system_tests import CaseMeta, path, check_no_ASAN_UBSAN_errors


class OutOfBoundsReadInCrwMapDecode0x080a(metaclass=CaseMeta):
"""
Regression test for the bug described in:
https://github.com/Exiv2/exiv2/issues/1887
"""
url = "https://github.com/Exiv2/exiv2/issues/1887"

filename = path("$data_path/issue_1887_poc.crw")
commands = ["$exiv2 $filename"]
stderr = [""]
retval = [0]

compare_stdout = check_no_ASAN_UBSAN_errors

0 comments on commit 9c4f9c7

Please sign in to comment.