summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-graphics
diff options
context:
space:
mode:
authorAnkur Tyagi <ankur.tyagi85@gmail.com>2025-12-16 12:43:26 +0530
committerAnuj Mittal <anuj.mittal@oss.qualcomm.com>2025-12-17 11:45:20 +0530
commita0292cd209662a8c8947ccff7b63c6ea6c3ffdc0 (patch)
tree7549652723d582201637f38b532cc2c6060862f6 /meta-oe/recipes-graphics
parent1fea09e692e92fe96ac78067c666d4e387751523 (diff)
downloadmeta-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.patch30
-rw-r--r--meta-oe/recipes-graphics/jasper/jasper_4.1.2.bb1
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 @@
1From 0a3bbc33b88a44e03c7d7a2732b80f4e2ed45355 Mon Sep 17 00:00:00 2001
2From: Michael Adams <mdadams@ece.uvic.ca>
3Date: Fri, 29 Mar 2024 07:57:29 -0700
4Subject: [PATCH] Fixes #381.
5
6Added a missing check to the jpc_dec_process_sod function of the JPC codec.
7Added another image to the test set.
8
9CVE: CVE-2024-31744
10Upstream-Status: Backport [https://github.com/jasper-software/jasper/commit/6d084c53a77762f41bb5310713a5f1872fef55f5]
11Signed-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
16diff --git a/src/libjasper/jpc/jpc_dec.c b/src/libjasper/jpc/jpc_dec.c
17index 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 "
11SRCREV = "ff633699cb785967a2cb0084d89d56e53c46e416" 12SRCREV = "ff633699cb785967a2cb0084d89d56e53c46e416"
12 13