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

ray at ghostscript.com ray at ghostscript.com
Wed May 21 12:46:53 PDT 2008


Author: ray
Date: 2008-05-21 12:46:53 -0700 (Wed, 21 May 2008)
New Revision: 8768

Modified:
   trunk/gs/src/gxclthrd.c
Log:
Change parameters to gdev_prn_allocata_mesmory to explicit width and height to work
around a (suspected) bug in gdev_prn_allocate when new_width and new_height are 0
and the page has transparency. That issue will be adddressed separately.
Crash with multi-threaded rendering reported by customer #850.


Modified: trunk/gs/src/gxclthrd.c
===================================================================
--- trunk/gs/src/gxclthrd.c	2008-05-21 19:46:47 UTC (rev 8767)
+++ trunk/gs/src/gxclthrd.c	2008-05-21 19:46:53 UTC (rev 8768)
@@ -143,7 +143,7 @@
 	 * We need  to unlink those files and open the main thread's files, then
 	 * reset the clist state for reading/rendering
 	 */
-	if ((code = gdev_prn_allocate_memory(ndev, NULL, 0, 0)) < 0)
+	if ((code = gdev_prn_allocate_memory(ndev, NULL, ndev->width, ndev->height)) < 0)
 	    break;
 	thread->cdev = ndev;
 	/* close and unlink the temp files just created */



More information about the gs-cvs mailing list