]> git.wh0rd.org - fontconfig.git/commit
Bump cache version up from 2 to 3 and fix FcLangSet caching/crash
authorBehdad Esfahbod <behdad@behdad.org>
Mon, 16 Nov 2009 20:39:16 +0000 (15:39 -0500)
committerBehdad Esfahbod <behdad@behdad.org>
Mon, 16 Nov 2009 22:46:12 +0000 (17:46 -0500)
commit1f4e6fecde22fd4ce8336b01a5c32c533fcb8bac
tree5c8cf7824a8c6309f0bc8000f8713099e214914e
parent6b1fc678ca59df3f3f1ffac0e509cf485c9df0c0
Bump cache version up from 2 to 3 and fix FcLangSet caching/crash

Protect cache against future expansions of FcLangSet (adding new
orth files).  Previously, doing so could change the size of
that struct.  Indeed, that happened between 2.6.0 and 2.7.3, causing
crashes.  Unfortunately, sizeof(FcLangSet) was not checked in fcarch.c.

This changes FcLangSet code to be able to cope with struct size changes.
And change cache format, hence bumping from 2 to 3.
fontconfig/fontconfig.h
src/fcint.h
src/fclang.c