1 |
--- ghostscript-9.06/icclib/icc.c~ 2012-08-08 04:01:36.000000000 -0400 |
2 |
+++ ghostscript-9.06/icclib/icc.c 2012-10-09 17:18:11.313882594 -0400 |
3 |
@@ -4996,6 +4996,11 @@ |
4 |
p->clutPoints = read_UInt8Number(bp+10); |
5 |
|
6 |
/* Sanity check */ |
7 |
+ if (p->inputChan < 1) { |
8 |
+ sprintf(icp->err,"icmLut_read: No input channels!\n",MAX_CHAN); |
9 |
+ return icp->errc = 1; |
10 |
+ } |
11 |
+ |
12 |
if (p->inputChan > MAX_CHAN) { |
13 |
sprintf(icp->err,"icmLut_read: Can't handle > %d input channels\n",MAX_CHAN); |
14 |
return icp->errc = 1; |