-
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 #1758 from kevinbackhouse/Fix-GHSA-h9x9-4f77-336w
Check that the iterator is not end() after calling findKey
- Loading branch information
Showing
8 changed files
with
73 additions
and
36 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
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
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
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
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
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,17 @@ | ||
# -*- coding: utf-8 -*- | ||
|
||
from system_tests import CaseMeta, CopyTmpFiles, path, check_no_ASAN_UBSAN_errors | ||
|
||
class Jp2ImageEncodeJp2HeaderOutOfBoundsRead2(metaclass=CaseMeta): | ||
""" | ||
Regression test for the bug described in: | ||
https://github.com/Exiv2/exiv2/security/advisories/GHSA-h9x9-4f77-336w | ||
""" | ||
url = "https://github.com/Exiv2/exiv2/security/advisories/GHSA-h9x9-4f77-336w" | ||
|
||
filename = path("$data_path/issue_ghsa_h9x9_4f77_336w_poc.exv") | ||
commands = ["$exiv2 -P t $filename"] | ||
retval = [0] | ||
|
||
compare_stdout = check_no_ASAN_UBSAN_errors | ||
compare_stderr = check_no_ASAN_UBSAN_errors |