From 556dffcdad42b938bc196819aa463247de709765 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Mon, 1 Sep 2014 15:42:20 +0200 Subject: Remove patches from source --- icc/icc.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'icc/icc.c') diff --git a/icc/icc.c b/icc/icc.c index 68668d0..95dc0e9 100644 --- a/icc/icc.c +++ b/icc/icc.c @@ -6348,6 +6348,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; -- cgit v1.2.3