Fix for 667301, x11cmyk crash

Alex Cherepanov <[email protected]>
Newsgroups gmane.comp.printing.ghostscript.patches
Organization Coscript Software
Message-ID <[email protected]>
Remove explicit selection of gx_default_get_xfont_device() method
because it is not suitable for the forwarding device. The default
method returns the overprint device itself. An attempt to use
X11 data members in the overprint device dereferences wild core.
Fix bug 667301 from customer 190

_______________________________________________
gs-code-review mailing list
[email protected]
http://www.ghostscript.com/mailman/listinfo/gs-code-review
gsovrc.c.diff (text/plain, 1.3 KB)
Index: gs/src/gsovrc.c
===================================================================
RCS file: /cvs/ghostscript/gs/src/gsovrc.c,v
retrieving revision 1.4
diff -b -u -r1.4 gsovrc.c
--- gs/src/gsovrc.c	29 Jan 2004 18:19:41 -0000	1.4
+++ gs/src/gsovrc.c	8 Feb 2004 05:35:16 -0000
@@ -451,7 +451,7 @@
     overprint_put_params,               /* put_params */
     0,                                  /* map_cmyk_color */
     0,                                  /* get_xfont_procs */
-    gx_default_get_xfont_device,        /* get_xfont_device */
+    0,                                  /* get_xfont_device */
     0,                                  /* map_rgb_alpha_color */
     overprint_get_page_device,          /* get_page_device */
     0,                                  /* get_alpha_bits (obsolete) */
@@ -507,7 +507,7 @@
     overprint_put_params,               /* put_params */
     0,                                  /* map_cmyk_color */
     0,                                  /* get_xfont_procs */
-    gx_default_get_xfont_device,        /* get_xfont_device */
+    0,                                  /* get_xfont_device */
     0,                                  /* map_rgb_alpha_color */
     overprint_get_page_device,          /* get_page_device */
     0,                                  /* get_alpha_bits (obsolete) */
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.