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

leonardo at ghostscript.com leonardo at ghostscript.com
Wed May 21 03:12:14 PDT 2008


Author: leonardo
Date: 2008-05-21 03:12:14 -0700 (Wed, 21 May 2008)
New Revision: 8761

Modified:
   trunk/gs/src/gxclutil.c
Log:
Enhancement (graphics) : Delay applying type 1 raster patterns until clist interpretation (continued 2).

DETAILS :

Bug 689848 "C stack overflow on Windows and hang on linux 176-01.ps".

A patch from Ray, which eliminates an infinite recursion in the clist writer.
A further improvement is coming soon about noodling the big data 
while copying a pattern into a page clist.

EXPECTED DIFFERENCES :

None.


Modified: trunk/gs/src/gxclutil.c
===================================================================
--- trunk/gs/src/gxclutil.c	2008-05-21 06:46:41 UTC (rev 8760)
+++ trunk/gs/src/gxclutil.c	2008-05-21 10:12:14 UTC (rev 8761)
@@ -224,7 +224,8 @@
 
     if (size + cmd_headroom > cldev->cend - dp) {
 	if ((cldev->error_code =
-	       cmd_write_buffer(cldev, cmd_opv_end_run)) != 0) {
+             cmd_write_buffer(cldev, cmd_opv_end_run)) != 0 ||
+            (size + cmd_headroom > cldev->cend - cldev->cnext)) {
 	    if (cldev->error_code < 0)
 		cldev->error_is_retryable = 0;	/* hard error */
 	    else {



More information about the gs-cvs mailing list