[gs-cvs] rev 8765 - trunk/gs/src
ray at ghostscript.com
ray at ghostscript.com
Wed May 21 12:05:31 PDT 2008
Author: ray
Date: 2008-05-21 12:05:31 -0700 (Wed, 21 May 2008)
New Revision: 8765
Modified:
trunk/gs/src/gsiparam.h
Log:
Reduce the GS_IMAGE_MAX_PLANES to a sane number. The image cannot have more
planes than the number of CLIENT_COLORS we support (plus 1 for alpha).
This cures a stack overflow seen with the multi-threaded rendering on
Windows.
Modified: trunk/gs/src/gsiparam.h
===================================================================
--- trunk/gs/src/gsiparam.h 2008-05-21 18:27:42 UTC (rev 8764)
+++ trunk/gs/src/gsiparam.h 2008-05-21 19:05:31 UTC (rev 8765)
@@ -67,13 +67,9 @@
#define gs_image_max_components GS_IMAGE_MAX_COMPONENTS
/*
- * Define the maximum number of planes in image data. Since we support
- * allocating a plane for each bit, the maximum value is the maximum number
- * of components (see above) times the maximum depth per component
- * (currently 8 for multi-component bit-planar images, but could be 16
- * someday; 32 or maybe 64 for DevicePixel images).
+ * Define the maximum number of planes in image data.
*/
-#define GS_IMAGE_MAX_PLANES (GS_IMAGE_MAX_COMPONENTS * 8)
+#define GS_IMAGE_MAX_PLANES GS_IMAGE_MAX_COMPONENTS
/* Backward compatibility */
#define gs_image_max_planes GS_IMAGE_MAX_PLANES
More information about the gs-cvs
mailing list