mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-08 11:52:55 -04:00
19 lines
561 B
Plaintext
19 lines
561 B
Plaintext
$NetBSD: patch-CVE-2012-4405,v 1.1 2013/03/16 21:32:01 dholland Exp $
|
|
|
|
from RedHat bug #854227
|
|
|
|
--- icclib/icc.c.orig 2009-07-28 07:48:19.000000000 +0000
|
|
+++ icclib/icc.c
|
|
@@ -4996,6 +4996,11 @@
|
|
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;
|