blob: 6cdcc6adcab749e950ffb0cfb92b8c35ce9d4806 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
diff --exclude-from=/home/dang/.scripts/diffrc -up -ruN lcms-1.18.orig/src/cmsxform.c lcms-1.18/src/cmsxform.c
--- lcms-1.18.orig/src/cmsxform.c 2009-03-21 11:31:52.000000000 -0400
+++ lcms-1.18/src/cmsxform.c 2009-04-06 09:24:26.000000000 -0400
@@ -660,6 +660,9 @@ LPMATSHAPER cmsBuildGrayOutputMatrixShap
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 @@ LPMATSHAPER cmsBuildGrayOutputMatrixShap
GrayTRC = cmsReadICCGammaReversed(hProfile, icSigGrayTRCTag); // Y
+ if (GrayTRC == NULL)
+ return NULL;
+
Shapes[0] = cmsDupGamma(GrayTRC);
Shapes[1] = cmsDupGamma(GrayTRC);
Shapes[2] = cmsDupGamma(GrayTRC);
|