blob: 8808fe1ae8acb15dc557a616cee0ea986022578e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
https://bugzilla.redhat.com/show_bug.cgi?id=854227
https://bugzilla.redhat.com/attachment.cgi?id=609986
--- icc/icc.c 2012-04-19 09:36:49.000000000 +0200
+++ icc/icc.c.oden 2012-09-12 12:35:49.252519528 +0200
@@ -6065,6 +6065,11 @@ static int icmLut_read(
p->clutPoints = read_UInt8Number(bp+10);
/* Sanity check */
+ if (p->inputChan < 1) {
+ sprintf(icp->err,"icmLut_read: No input channels!");
+ return icp->errc = 1;
+ }
+
if (p->inputChan > MAX_CHAN) {
sprintf(icp->err,"icmLut_read: Can't handle > %d input channels\n",MAX_CHAN);
return icp->errc = 1;
|