Gentoo Archives: gentoo-commits

From: "Daniel Gryniewicz (dang)" <dang@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-libs/lcms/files: lcms-CVE-2009-0793.patch
Date: Mon, 06 Apr 2009 13:38:48
Message-Id: E1Lqp2E-0002kn-KH@stork.gentoo.org
1 dang 09/04/06 13:38:46
2
3 Added: lcms-CVE-2009-0793.patch
4 Log:
5 Fix for CVE-2009-0793, bug #264604
6 (Portage version: 2.1.6.11/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.1 media-libs/lcms/files/lcms-CVE-2009-0793.patch
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/lcms/files/lcms-CVE-2009-0793.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/lcms/files/lcms-CVE-2009-0793.patch?rev=1.1&content-type=text/plain
13
14 Index: lcms-CVE-2009-0793.patch
15 ===================================================================
16 diff --exclude-from=/home/dang/.scripts/diffrc -up -ruN lcms-1.18.orig/src/cmsxform.c lcms-1.18/src/cmsxform.c
17 --- lcms-1.18.orig/src/cmsxform.c 2009-03-21 11:31:52.000000000 -0400
18 +++ lcms-1.18/src/cmsxform.c 2009-04-06 09:24:26.000000000 -0400
19 @@ -660,6 +660,9 @@ LPMATSHAPER cmsBuildGrayOutputMatrixShap
20 GrayTRC = cmsReadICCGamma(hProfile, icSigGrayTRCTag);
21 FromLstarToXYZ(GrayTRC, Shapes1);
22
23 + if (GrayTRC == NULL)
24 + return NULL;
25 +
26 // Reversing must be done after curve translation
27
28 Shapes[0] = cmsReverseGamma(Shapes1[0]->nEntries, Shapes1[0]);
29 @@ -675,6 +678,9 @@ LPMATSHAPER cmsBuildGrayOutputMatrixShap
30
31 GrayTRC = cmsReadICCGammaReversed(hProfile, icSigGrayTRCTag); // Y
32
33 + if (GrayTRC == NULL)
34 + return NULL;
35 +
36 Shapes[0] = cmsDupGamma(GrayTRC);
37 Shapes[1] = cmsDupGamma(GrayTRC);
38 Shapes[2] = cmsDupGamma(GrayTRC);