[Fontconfig-bugs] [Bug 106618] Relocated caches not quite working

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu May 24 06:10:43 UTC 2018


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

--- Comment #17 from Alexander Larsson <alexl at redhat.com> ---
I looked at just hooking FcPatternGetString, but that didn't seem safe to me.
The element values are used in a lot of other ways too, like in FcPatternHash,
FcPatternEqual and even in completely other places like FcNameUnparseEscaped.
And all these directly access the elements array with no abstraction inbetween.

Instead of replacing the entire elements array we could have a single on for
the FC_FILE, and then add an abstraction for looking up element N from the
elements array, but that would be a far larger and more intrusive patch, and I
wanted something safe that we can get in immediately because people are hitting
this regression.

-- 
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/20180524/02fc24cb/attachment.html>


More information about the Fontconfig-bugs mailing list