Details
[Home]
Issue of the Implementation # S0607
Brief
The FcDirScan function crashes with segmentation fault
Detailed Description
The FcDirScan function crashes on current directory with segmentation fault.
Problem location(s) in the standard
Fontconfig Developers Reference, Version 2.4.2
Example
FcConfig *fc; FcFontSet *set; FcStrSet *dirs; FcBlanks *blanks; FcInit (); if (!(fc = FcConfigGetCurrent ())) { printf ("Could not get current config"); } if (!(set = FcFontSetCreate ())) { printf ("Could not create font sets "); } if (!(dirs = FcStrSetCreate ())) { printf ("Could not create str set "); } if (!(blanks = FcConfigGetBlanks (fc))) { printf ("Could not create blanks "); } /* * Crashes here */ FcDirScan (set, dirs, 0, blanks, (FcChar8 *)"some_dir", FcTrue);
Component
fontconfig 2.3.94
Status
Fixed in fontconfig 2.4.2
[Home]
»