Gentoo Archives: gentoo-commits

From: "Samuli Suominen (ssuominen)" <ssuominen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-libs/jpeg/files: jpeg-8d-CVE-2013-6629.patch
Date: Fri, 24 Jan 2014 12:00:26
Message-Id: 20140124120022.A915F2004E@flycatcher.gentoo.org
1 ssuominen 14/01/24 12:00:22
2
3 Added: jpeg-8d-CVE-2013-6629.patch
4 Log:
5 Fix security bug 491152 (CVE-2013-6629) for jpeg-8d. The patch still applies to jpeg-9 but causes a build failure and needs to be ported.
6
7 (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 4868F14D)
8
9 Revision Changes Path
10 1.1 media-libs/jpeg/files/jpeg-8d-CVE-2013-6629.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/jpeg/files/jpeg-8d-CVE-2013-6629.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/jpeg/files/jpeg-8d-CVE-2013-6629.patch?rev=1.1&content-type=text/plain
14
15 Index: jpeg-8d-CVE-2013-6629.patch
16 ===================================================================
17 http://bugs.gentoo.org/491152
18
19 --- jdmarker.c
20 +++ jdmarker.c
21 @@ -347,6 +347,12 @@
22
23 TRACEMS3(cinfo, 1, JTRC_SOS_COMPONENT, cc,
24 compptr->dc_tbl_no, compptr->ac_tbl_no);
25 +
26 + /* This CSi (cc) should differ from the previous CSi */
27 + for (ci = 0; ci < i; ci++) {
28 + if (cinfo->cur_comp_info[ci] == compptr)
29 + ERREXIT1(cinfo, JERR_BAD_COMPONENT_ID, cc);
30 + }
31 }
32
33 /* Collect the additional scan parameters Ss, Se, Ah/Al. */