-
Notifications
You must be signed in to change notification settings - Fork 282
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1889 from Exiv2/mergify/bp/0.27-maintenance/pr-1888
Avoid reading 1 byte off the end when the string does not contain a '\0' byte (backport #1888)
- Loading branch information
Showing
3 changed files
with
24 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |