blob: 8f91ca3ab79ce54144f85f3be8dadb410fccc995 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
--- xpdf/GfxState.cc.orig Wed Jun 25 00:41:27 2003
+++ xpdf/GfxState.cc Tue Jan 11 18:21:14 2005
@@ -708,6 +708,11 @@
}
nCompsA = obj2.getInt();
obj2.free();
+ if (nCompsA > gfxColorMaxComps) {
+ error(-1, "ICCBased color space with too many (%d > %d) components",
+ nCompsA, gfxColorMaxComps);
+ nCompsA = gfxColorMaxComps;
+ }
if (dict->lookup("Alternate", &obj2)->isNull() ||
!(altA = GfxColorSpace::parse(&obj2))) {
switch (nCompsA) {
|