changeset 1731:830101735cdb

6764543: SIGSEGV in libfontconfig.so starting from jdk7b33 Reviewed-by: campbell, igor
author prr
date Tue, 28 Oct 2008 14:40:58 -0700
parents 2482c2865beb
children cbd1ef3625fc
files jdk/src/solaris/native/sun/awt/fontpath.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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)