|
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.
|