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

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri May 25 07:02:49 UTC 2018


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

--- Comment #30 from Alexander Larsson <alexl at redhat.com> ---
For the record, I still think the real fix is to change the cache format to use
dynamic-library style indirection, like the GOT.

I.e. have the FC_FILE not be an byte offset, but an index into a separate table
of byte offsets, and store the default table at the end of the cache file,
properly page aligned. Then you mmap the cache in two chunks, once for the main
part and the second for the offset table + strings. However, when you relocate
the cache the other part is not mmaped, but instead recreated dynamically.

Thats a lot more work though, and this patch fixes things as-is.

-- 
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/20180525/3ddc31c8/attachment.html>


More information about the Fontconfig-bugs mailing list