-
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.
fix incorrect loop condition (#1752)
- Loading branch information
1 parent
5ab3f2b
commit d30c95d
Showing
4 changed files
with
24 additions
and
7 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
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, CopyTmpFiles, path, check_no_ASAN_UBSAN_errors | ||
@CopyTmpFiles("$data_path/issue_ghsa_mxw9_qx4c_6m8v_poc.jp2") | ||
|
||
class Jp2ImageEncodeJp2HeaderOutOfBoundsRead2(metaclass=CaseMeta): | ||
""" | ||
Regression test for the bug described in: | ||
https://github.com/Exiv2/exiv2/security/advisories/GHSA-mxw9-qx4c-6m8v | ||
""" | ||
url = "https://github.com/Exiv2/exiv2/security/advisories/GHSA-mxw9-qx4c-6m8v" | ||
|
||
filename = path("$tmp_path/issue_ghsa_mxw9_qx4c_6m8v_poc.jp2") | ||
commands = ["$exiv2 rm $filename"] | ||
stdout = [""] | ||
retval = [0] | ||
|
||
compare_stderr = check_no_ASAN_UBSAN_errors |