diff options
| author | Ankur Tyagi <ankur.tyagi85@gmail.com> | 2025-12-16 12:43:26 +0530 |
|---|---|---|
| committer | Anuj Mittal <anuj.mittal@oss.qualcomm.com> | 2025-12-17 11:45:20 +0530 |
| commit | a0292cd209662a8c8947ccff7b63c6ea6c3ffdc0 (patch) | |
| tree | 7549652723d582201637f38b532cc2c6060862f6 /meta-oe/recipes-graphics | |
| parent | 1fea09e692e92fe96ac78067c666d4e387751523 (diff) | |
| download | meta-openembedded-a0292cd209662a8c8947ccff7b63c6ea6c3ffdc0.tar.gz | |
jasper: patch CVE-2024-31744
Details https://nvd.nist.gov/vuln/detail/CVE-2024-31744
Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com>
Signed-off-by: Anuj Mittal <anuj.mittal@oss.qualcomm.com>
Diffstat (limited to 'meta-oe/recipes-graphics')
| -rw-r--r-- | meta-oe/recipes-graphics/jasper/jasper/0001-Fixes-381.patch | 30 | ||||
| -rw-r--r-- | meta-oe/recipes-graphics/jasper/jasper_4.1.2.bb | 1 |
2 files changed, 31 insertions, 0 deletions
diff --git a/meta-oe/recipes-graphics/jasper/jasper/0001-Fixes-381.patch b/meta-oe/recipes-graphics/jasper/jasper/0001-Fixes-381.patch new file mode 100644 index 0000000000..21cf347d18 --- /dev/null +++ b/meta-oe/recipes-graphics/jasper/jasper/0001-Fixes-381.patch | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | From 0a3bbc33b88a44e03c7d7a2732b80f4e2ed45355 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Michael Adams <mdadams@ece.uvic.ca> | ||
| 3 | Date: Fri, 29 Mar 2024 07:57:29 -0700 | ||
| 4 | Subject: [PATCH] Fixes #381. | ||
| 5 | |||
| 6 | Added a missing check to the jpc_dec_process_sod function of the JPC codec. | ||
| 7 | Added another image to the test set. | ||
| 8 | |||
| 9 | CVE: CVE-2024-31744 | ||
| 10 | Upstream-Status: Backport [https://github.com/jasper-software/jasper/commit/6d084c53a77762f41bb5310713a5f1872fef55f5] | ||
| 11 | Signed-off-by: Ankur Tyagi <ankur.tyagi85@gmail.com> | ||
| 12 | --- | ||
| 13 | src/libjasper/jpc/jpc_dec.c | 4 +++- | ||
| 14 | 1 file changed, 3 insertions(+), 1 deletion(-) | ||
| 15 | |||
| 16 | diff --git a/src/libjasper/jpc/jpc_dec.c b/src/libjasper/jpc/jpc_dec.c | ||
| 17 | index 929f7ae..7e44f05 100644 | ||
| 18 | --- a/src/libjasper/jpc/jpc_dec.c | ||
| 19 | +++ b/src/libjasper/jpc/jpc_dec.c | ||
| 20 | @@ -611,7 +611,9 @@ static int jpc_dec_process_sod(jpc_dec_t *dec, jpc_ms_t *ms) | ||
| 21 | if (dec->pkthdrstreams) { | ||
| 22 | /* Get the stream containing the packet header data for this | ||
| 23 | tile-part. */ | ||
| 24 | - if (!(tile->pkthdrstream = jpc_streamlist_remove(dec->pkthdrstreams, 0))) { | ||
| 25 | + if (jpc_streamlist_numstreams(dec->pkthdrstreams) != 0 && | ||
| 26 | + !(tile->pkthdrstream = jpc_streamlist_remove(dec->pkthdrstreams, | ||
| 27 | + 0))) { | ||
| 28 | return -1; | ||
| 29 | } | ||
| 30 | } | ||
diff --git a/meta-oe/recipes-graphics/jasper/jasper_4.1.2.bb b/meta-oe/recipes-graphics/jasper/jasper_4.1.2.bb index 5f6ad067e0..398b3bd05f 100644 --- a/meta-oe/recipes-graphics/jasper/jasper_4.1.2.bb +++ b/meta-oe/recipes-graphics/jasper/jasper_4.1.2.bb | |||
| @@ -7,6 +7,7 @@ SRC_URI = "git://github.com/jasper-software/jasper.git;protocol=https;branch=mas | |||
| 7 | file://0001-Fixes-400.patch \ | 7 | file://0001-Fixes-400.patch \ |
| 8 | file://0001-Fixes-401.patch \ | 8 | file://0001-Fixes-401.patch \ |
| 9 | file://0001-Fixes-402-403.patch \ | 9 | file://0001-Fixes-402-403.patch \ |
| 10 | file://0001-Fixes-381.patch \ | ||
| 10 | " | 11 | " |
| 11 | SRCREV = "ff633699cb785967a2cb0084d89d56e53c46e416" | 12 | SRCREV = "ff633699cb785967a2cb0084d89d56e53c46e416" |
| 12 | 13 | ||
