[Fontconfig-bugs] [Bug 101889] Make fontconfig cache relocatable

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Dec 18 19:18:08 UTC 2017


https://bugs.freedesktop.org/show_bug.cgi?id=101889

--- Comment #81 from Behdad Esfahbod <freedesktop at behdad.org> ---
Fontconfig master is crashing for me now, with some font lookups but not
always, in like 656:

651                     while (l->value.type != FcTypeString)
652                         l = FcValueListNext (l);
653                     if (!l)
654                         goto bail0;
655                     dir = FcStrDirname (FcValueString (&l->value));
656                     if (FcHashTableFind (config->alias_table, dir, (void
**) &alias))
657                     {
658                         FcChar8 *base = FcStrBasename (FcValueString
(&l->value));
659                         FcChar8 *s = FcStrBuildFilename (alias, base,
NULL);
660                         FcValue v;
(gdb) 

Apparently config is NULL but config->alias_table accessed.

I also find it bizarre that fcmatch.c has directory name manipulation code now.
 This should have been refactored somewhere else ideally.

Thanks.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/fontconfig-bugs/attachments/20171218/c270fea4/attachment.html>


More information about the Fontconfig-bugs mailing list