6764543: SIGSEGV in libfontconfig.so starting from jdk7b33
authorprr
Tue, 28 Oct 2008 14:40:58 -0700
changeset 1731 830101735cdb
parent 1730 2482c2865beb
child 1732 cbd1ef3625fc
6764543: SIGSEGV in libfontconfig.so starting from jdk7b33 Reviewed-by: campbell, igor
jdk/src/solaris/native/sun/awt/fontpath.c
--- a/jdk/src/solaris/native/sun/awt/fontpath.c	Tue Oct 21 08:25:38 2008 -0700
+++ b/jdk/src/solaris/native/sun/awt/fontpath.c	Tue Oct 28 14:40:58 2008 -0700
@@ -1233,7 +1233,7 @@
         for (j=0; j<nfonts; j++) {
             FcPattern *fontPattern = fontset->fonts[j];
             FcChar8 *fontformat;
-            FcCharSet *unionCharset, *charset;
+            FcCharSet *unionCharset = NULL, *charset;
 
             fontformat = NULL;
             (*FcPatternGetString)(fontPattern, FC_FONTFORMAT, 0, &fontformat);
@@ -1256,7 +1256,7 @@
             if (nfonts==10) {
                 minGlyphs = 50;
             }
-            if (j == 0) {
+            if (unionCharset == NULL) {
                 unionCharset = charset;
             } else {
                 if ((*FcCharSetSubtractCount)(charset, unionCharset)