* [Buildroot] [PATCH] jasper: add a patch fixing CVE-2014-9029
@ 2014-12-10 18:57 Baruch Siach
2014-12-10 20:24 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Baruch Siach @ 2014-12-10 18:57 UTC (permalink / raw)
To: buildroot
See http://www.ocert.org/advisories/ocert-2014-009.html for the details.
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
---
package/jasper/0001-fix-CVE-2014-9029.patch | 36 +++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
create mode 100644 package/jasper/0001-fix-CVE-2014-9029.patch
diff --git a/package/jasper/0001-fix-CVE-2014-9029.patch b/package/jasper/0001-fix-CVE-2014-9029.patch
new file mode 100644
index 000000000000..c2e95a8d1446
--- /dev/null
+++ b/package/jasper/0001-fix-CVE-2014-9029.patch
@@ -0,0 +1,36 @@
+Fix CVE-2014-9029
+
+Patch taken from https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2014-9029
+
+Signed-off-by: Baruch Siach <baruch@tkos.co.il>
+---
+
+--- jasper-1.900.1.orig/src/libjasper/jpc/jpc_dec.c 2014-11-27 12:45:44.000000000 +0100
++++ jasper-1.900.1.orig/src/libjasper/jpc/jpc_dec.c 2014-11-27 12:44:58.000000000 +0100
+@@ -1281,7 +1281,7 @@ static int jpc_dec_process_coc(jpc_dec_t
+ jpc_coc_t *coc = &ms->parms.coc;
+ jpc_dec_tile_t *tile;
+
+- if (JAS_CAST(int, coc->compno) > dec->numcomps) {
++ if (JAS_CAST(int, coc->compno) >= dec->numcomps) {
+ jas_eprintf("invalid component number in COC marker segment\n");
+ return -1;
+ }
+@@ -1307,7 +1307,7 @@ static int jpc_dec_process_rgn(jpc_dec_t
+ jpc_rgn_t *rgn = &ms->parms.rgn;
+ jpc_dec_tile_t *tile;
+
+- if (JAS_CAST(int, rgn->compno) > dec->numcomps) {
++ if (JAS_CAST(int, rgn->compno) >= dec->numcomps) {
+ jas_eprintf("invalid component number in RGN marker segment\n");
+ return -1;
+ }
+@@ -1356,7 +1356,7 @@ static int jpc_dec_process_qcc(jpc_dec_t
+ jpc_qcc_t *qcc = &ms->parms.qcc;
+ jpc_dec_tile_t *tile;
+
+- if (JAS_CAST(int, qcc->compno) > dec->numcomps) {
++ if (JAS_CAST(int, qcc->compno) >= dec->numcomps) {
+ jas_eprintf("invalid component number in QCC marker segment\n");
+ return -1;
+ }
--
2.1.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH] jasper: add a patch fixing CVE-2014-9029
2014-12-10 18:57 [Buildroot] [PATCH] jasper: add a patch fixing CVE-2014-9029 Baruch Siach
@ 2014-12-10 20:24 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2014-12-10 20:24 UTC (permalink / raw)
To: buildroot
Dear Baruch Siach,
On Wed, 10 Dec 2014 20:57:23 +0200, Baruch Siach wrote:
> See http://www.ocert.org/advisories/ocert-2014-009.html for the details.
>
> Signed-off-by: Baruch Siach <baruch@tkos.co.il>
> ---
> package/jasper/0001-fix-CVE-2014-9029.patch | 36 +++++++++++++++++++++++++++++
> 1 file changed, 36 insertions(+)
> create mode 100644 package/jasper/0001-fix-CVE-2014-9029.patch
Applied, thanks.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-12-10 20:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-10 18:57 [Buildroot] [PATCH] jasper: add a patch fixing CVE-2014-9029 Baruch Siach
2014-12-10 20:24 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox