File ghostscript-9.00-bnc779700.patch of Package ghostscript-library.887

--- icclib/icc.c.orig	2009-07-28 09:48:19.000000000 +0200
+++ icclib/icc.c	2012-09-12 14:26:45.000000000 +0200
@@ -5006,6 +5006,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;
openSUSE Build Service is sponsored by