[gs-cvs] rev 8665 - trunk/gs/src
alexcher at ghostscript.com
alexcher at ghostscript.com
Sun Apr 27 08:21:10 PDT 2008
Author: alexcher
Date: 2008-04-27 08:21:10 -0700 (Sun, 27 Apr 2008)
New Revision: 8665
Modified:
trunk/gs/src/zicc.c
Log:
Check the error code early. Fix a SEGV in PDF file with invalid ICC profile
that was introduced by the rev. 8664.
DIFFERENCES:
Fixed SEGV in comparefiles/annots.pdf
Modified: trunk/gs/src/zicc.c
===================================================================
--- trunk/gs/src/zicc.c 2008-04-26 04:35:56 UTC (rev 8664)
+++ trunk/gs/src/zicc.c 2008-04-27 15:21:10 UTC (rev 8665)
@@ -143,6 +143,8 @@
rc_increment(palt_cs);
code = gx_load_icc_profile(picc_info);
+ if (code < 0)
+ return code;
/* If the input space to this profile is CIELAB, then we need to adjust the limits */
/* See ICC spec ICC.1:2004-10 Section 6.3.4.2 and 6.4 */
@@ -176,9 +178,6 @@
}
- if (code < 0)
- return code;
-
code = cie_cache_joint(i_ctx_p, &istate->colorrendering.procs,
(gs_cie_common *)picc_info, igs);
if (code < 0)
More information about the gs-cvs
mailing list