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

ray at ghostscript.com ray at ghostscript.com
Sat Apr 28 17:34:17 PDT 2007


Author: ray
Date: 2007-04-28 17:34:16 -0700 (Sat, 28 Apr 2007)
New Revision: 7887

Modified:
   trunk/gs/src/gdevwts.c
Log:
Fix structure problem (this could have caused out-of-bounds access).


Modified: trunk/gs/src/gdevwts.c
===================================================================
--- trunk/gs/src/gdevwts.c	2007-04-28 22:17:19 UTC (rev 7886)
+++ trunk/gs/src/gdevwts.c	2007-04-29 00:34:16 UTC (rev 7887)
@@ -86,7 +86,7 @@
 
 typedef struct cached_color_s {
     gx_color_index color_index;
-    byte cmyk[0];
+    byte cmyk[4];
 } cached_color;
 
 typedef struct gx_device_wtsimdi_s {



More information about the gs-cvs mailing list