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

leonardo at ghostscript.com leonardo at ghostscript.com
Wed Aug 29 22:53:42 PDT 2007


Author: leonardo
Date: 2007-08-29 22:53:42 -0700 (Wed, 29 Aug 2007)
New Revision: 8218

Modified:
   trunk/gs/src/gdevpdtd.c
Log:
Fix (pdfwrite) : Uninitialized data after converting a Type 42 font into CID font.

DETAILS :

Bug 689399 "PDFA-Option cause gswin32 to crash".

This change is important with -dPDFA only,
and doesn't change the behavior otherwise.
Some font descriptor fields were not initialized.


EXPECTED DIFFERENCES :

None.


Modified: trunk/gs/src/gdevpdtd.c
===================================================================
--- trunk/gs/src/gdevpdtd.c	2007-08-30 02:36:52 UTC (rev 8217)
+++ trunk/gs/src/gdevpdtd.c	2007-08-30 05:53:42 UTC (rev 8218)
@@ -715,5 +715,8 @@
 	    pdfont->u.cidfont.CIDToGIDMap[ch] = glyph - GS_MIN_GLYPH_INDEX;
 	}
     }
+    pdfont->u.cidfont.Widths2 = NULL;
+    pdfont->u.cidfont.used2 = NULL;
+    pdfont->u.cidfont.v = NULL;
     return 0;
 }



More information about the gs-cvs mailing list