Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / print / ghostscript-gpl / patches / patch-CVE-2012-4405
blob356d69f1b6ffc832cf5ccdac4248f3d4460322e9
1 $NetBSD: patch-CVE-2012-4405,v 1.2 2012/10/07 14:19:18 mef Exp $
3 from RedHat bug #854227
5 --- icclib/icc.c.orig   2009-07-28 07:48:19.000000000 +0000
6 +++ icclib/icc.c
7 @@ -4996,6 +4996,11 @@
8          p->clutPoints = read_UInt8Number(bp+10);
9  
10          /* Sanity check */
11 +       if (p->inputChan < 1) {
12 +               sprintf(icp->err,"icmLut_read: No input channels!");
13 +               return icp->errc = 1;
14 +       }
16          if (p->inputChan > MAX_CHAN) {
17                  sprintf(icp->err,"icmLut_read: Can't handle > %d input channels\n",MAX_CHAN);
18                  return icp->errc = 1;