[gs-cvs] rev 6976 - trunk/gs/src

lpd at ghostscript.com lpd at ghostscript.com
Tue Aug 8 09:04:53 PDT 2006


Author: lpd
Date: 2006-08-08 09:04:53 -0700 (Tue, 08 Aug 2006)
New Revision: 6976

Modified:
   trunk/gs/src/zupath.c
Log:
Fixes a just-introduced bug in the stackunderflow case of the user path
operators.


Modified: trunk/gs/src/zupath.c
===================================================================
--- trunk/gs/src/zupath.c	2006-08-07 17:26:14 UTC (rev 6975)
+++ trunk/gs/src/zupath.c	2006-08-08 16:04:53 UTC (rev 6976)
@@ -164,7 +164,6 @@
     } else if (code == e_stackunderflow) {
 	/* If 0 elements, definitely a stackunderflow; otherwise, */
 	/* only 1 number, also a stackunderflow. */
-	return code;
     } else {			/* Aperture is a user path. */
 	/* We have to set the clipping path without disturbing */
 	/* the current path. */
@@ -242,7 +241,7 @@
     if (code < 0)
 	return code;
     if ((code = upath_append(op, i_ctx_p)) < 0 ||
-	(npop = in_path(op - 1, i_ctx_p, phdev)) < 0
+	(code = npop = in_path(op - 1, i_ctx_p, phdev)) < 0
 	) {
 	gs_grestore(igs);
 	return code;



More information about the gs-cvs mailing list