diff options
author | tron <tron> | 2009-04-14 18:54:38 +0000 |
---|---|---|
committer | tron <tron> | 2009-04-14 18:54:38 +0000 |
commit | 3861e161d351dae8d38ee239076bbee75de85af6 (patch) | |
tree | 08a51ed665d3b40c297a4b0fb53a4e6d4c01e438 /graphics/lcms/patches | |
parent | 2c7c387961190ab948334f6b9beef44538ca33d0 (diff) | |
download | pkgsrc-3861e161d351dae8d38ee239076bbee75de85af6.tar.gz |
Add patch for the security vulnerability reported in SA34634/CVE-2009-0793
taken from Redhat's Bugzilla.
Diffstat (limited to 'graphics/lcms/patches')
-rw-r--r-- | graphics/lcms/patches/patch-aa | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/graphics/lcms/patches/patch-aa b/graphics/lcms/patches/patch-aa new file mode 100644 index 00000000000..b33092d8264 --- /dev/null +++ b/graphics/lcms/patches/patch-aa @@ -0,0 +1,28 @@ +$NetBSD: patch-aa,v 1.10 2009/04/14 18:54:38 tron Exp $ + +Patch for SA34634/CVE-2009-0793 taken for Redhat's Bugzilla: + +https://bugzilla.redhat.com/attachment.cgi?id=337279 + +--- src/cmsxform.c.orig 2009-03-21 15:31:52.000000000 +0000 ++++ src/cmsxform.c 2009-04-14 19:18:05.000000000 +0100 +@@ -660,6 +660,9 @@ + GrayTRC = cmsReadICCGamma(hProfile, icSigGrayTRCTag); + FromLstarToXYZ(GrayTRC, Shapes1); + ++ if (GrayTRC == NULL) ++ return NULL; ++ + // Reversing must be done after curve translation + + Shapes[0] = cmsReverseGamma(Shapes1[0]->nEntries, Shapes1[0]); +@@ -675,6 +678,9 @@ + + GrayTRC = cmsReadICCGammaReversed(hProfile, icSigGrayTRCTag); // Y + ++ if (GrayTRC == NULL) ++ return NULL; ++ + Shapes[0] = cmsDupGamma(GrayTRC); + Shapes[1] = cmsDupGamma(GrayTRC); + Shapes[2] = cmsDupGamma(GrayTRC); |