From 10c0b931fdf3efa7f2ffc40d0cfbc5447616521a Mon Sep 17 00:00:00 2001 From: Jiri Popelka Date: Dec 04 2014 14:56:38 +0000 Subject: Merge branch 'f20' into f21 --- diff --git a/jasper-CVE-2014-9029.patch b/jasper-CVE-2014-9029.patch new file mode 100644 index 0000000..98a2035 --- /dev/null +++ b/jasper-CVE-2014-9029.patch @@ -0,0 +1,29 @@ +--- jasper-1.900.1.orig/src/libjasper/jpc/jpc_dec.c 2014-11-27 12:45:44.000000000 +0100 ++++ jasper-1.900.1/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; + } diff --git a/jasper.spec b/jasper.spec index 8d8aca4..d048b39 100644 --- a/jasper.spec +++ b/jasper.spec @@ -7,7 +7,7 @@ Summary: Implementation of the JPEG-2000 standard, Part 1 Name: jasper Group: System Environment/Libraries Version: 1.900.1 -Release: 27%{?dist} +Release: 28%{?dist} License: JasPer URL: http://www.ece.uvic.ca/~frodo/jasper/ @@ -32,6 +32,8 @@ Patch7: jasper-pkgconfig.patch Patch8: jasper-1.900.1-CVE-2011-4516-CVE-2011-4517-CERT-VU-887409.patch +Patch9: jasper-CVE-2014-9029.patch + # Issues found by static analysis of code Patch10: jasper-1.900.1-Coverity-BAD_SIZEOF.patch Patch11: jasper-1.900.1-Coverity-CHECKED_RETURN.patch @@ -93,6 +95,7 @@ Requires: %{name}-libs%{?_isa} = %{version}-%{release} %patch6 -p1 -b .CVE-2008-3522 %patch7 -p1 -b .pkgconfig %patch8 -p1 -b .CVE-2011-4516-4517 +%patch9 -p1 -b .CVE-2014-9029 %patch10 -p1 -b .BAD_SIZEOF %patch11 -p1 -b .CHECKED_RETURN @@ -170,6 +173,10 @@ make check %changelog +* Thu Dec 04 2014 Jiri Popelka - 1.900.1-28 +- CVE-2014-9029 - incorrect component number check in COC, RGN and QCC + marker segment decoders (#1170650) + * Sat Aug 16 2014 Fedora Release Engineering - 1.900.1-27 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild