OpenSolaris

Printable Version Enter a New Search
Bug ID 6770058
Synopsis FcFontSetSort will dump if first parameter is NULL
State 10-Fix Delivered (Fix available in build)
Category:Subcategory xserver:font
Keywords
Responsible Engineer Jay Cotton
Reported Against snv_100 , snv_103
Duplicate Of
Introduced In
Commit to Fix snv_110
Fixed In snv_110
Release Fixed solaris_nevada(snv_110)
Related Bugs
Submit Date 11-November-2008
Last Update Date 19-February-2009
Description
FcFontSetSort  (FcConfig  *config,  FcFontSet  **sets, intnsets, FcPattern *pattern, FcBool trim, FcCharSet **csp, FcResult
       *result);

The first parameter in community version of FcFontSetSort is unused.
In Solaris, it is used and it will cause a crash if it is NULL.

Like other functions in fontconfig, it should check if config is NULL.
If it is NULL, it should call FcConfigGetCurrent().
Like this,
        if (!config)
        {
   	 	config = FcConfigGetCurrent ();
   		if (!config)
   		    return 0;
        }

We have a crash with latest Firefox trunk on Solaris.
Work Around
Use FcFontSetSort ( FcConfigGetCurren (), ...) instead.
Comments
N/A