forked from openembedded/meta-openembedded
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CVE: CVE-2022-1122 The defect is undergoing reanalysis and there may be follow-up commits. Ref: * uclouvain/openjpeg#1368 Signed-off-by: Nicolas Marguet <[email protected]> Signed-off-by: Khem Raj <[email protected]>
- Loading branch information
Showing
2 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
31 changes: 31 additions & 0 deletions
31
meta-oe/recipes-graphics/openjpeg/openjpeg/CVE-2022-1122.patch
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,31 @@ | ||
Upstream-Status: Backport [https://github.com/uclouvain/openjpeg/commit/0afbdcf3e6d0d2bd2e16a0c4d513ee3cf86e460d] | ||
CVE: CVE-2022-1122 | ||
|
||
While this patch improves things re-CVE-2022-1122, the defect is undergoing re-analysis and there may be follow-up commits. | ||
|
||
From 0afbdcf3e6d0d2bd2e16a0c4d513ee3cf86e460d Mon Sep 17 00:00:00 2001 | ||
From: xiaoxiaoafeifei <[email protected]> | ||
Date: Wed, 14 Jul 2021 09:35:13 +0800 | ||
Subject: [PATCH] Fix segfault in src/bin/jp2/opj_decompress.c due to | ||
uninitialized pointer (fixes #1368) (#1369) | ||
|
||
--- | ||
src/bin/jp2/opj_decompress.c | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/src/bin/jp2/opj_decompress.c b/src/bin/jp2/opj_decompress.c | ||
index 0e028735..18ead672 100644 | ||
--- a/src/bin/jp2/opj_decompress.c | ||
+++ b/src/bin/jp2/opj_decompress.c | ||
@@ -1356,7 +1356,7 @@ int main(int argc, char **argv) | ||
int it_image; | ||
num_images = get_num_images(img_fol.imgdirpath); | ||
|
||
- dirptr = (dircnt_t*)malloc(sizeof(dircnt_t)); | ||
+ dirptr = (dircnt_t*)calloc(1, sizeof(dircnt_t)); | ||
if (!dirptr) { | ||
destroy_parameters(¶meters); | ||
return EXIT_FAILURE; | ||
-- | ||
2.25.1 | ||
|
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