Hi, Previously FcLangSet was defined as: struct _FcLangSet { FcChar32 map[NUM_LANG_SET_MAP]; FcStrSet *extra; }; Which meant that if enough new .orth files are added to change the value of NUM_LANG_SET_MAP, that struct changes layout, and the cache layout will change. This is indeed what happened between 2.6.0 and 2.7.x and was causing crashes since *extra was getting bogus values and then redirected. To fix that I''ve restructured the structure to: struct _FcLangSet { FcStrSet *extra; FcChar32 map_size; FcChar32 map[NUM_LANG_SET_MAP]; }; and changed the code to respect map_size. As a result I''ve bumped the cache version from 2 to 3. This is pushed to master. I plan to release this as 2.8.0. Will appreciate some testing in the mean while though. I may make a 2.7.90 snapshot later tonight or tomorrow. Or may release 2.8.0 straight. behdad
Le 17/11/2009 00:37, Behdad Esfahbod a ?crit :> I plan to release this as 2.8.0. Will appreciate some testing in the mean > while though. I may make a 2.7.90 snapshot later tonight or tomorrow. Or may > release 2.8.0 straight.I confirm it fixes our upgrade issue from fontconfig 2.6.0 -- Frederic Crozat Mandriva
On 11/18/2009 09:04 AM, Frederic Crozat wrote:> Le 17/11/2009 00:37, Behdad Esfahbod a ?crit : > >> I plan to release this as 2.8.0. Will appreciate some testing in the mean >> while though. I may make a 2.7.90 snapshot later tonight or tomorrow. Or may >> release 2.8.0 straight. > > I confirm it fixes our upgrade issue from fontconfig 2.6.0Thanks. I''m doing some minor cleaning also. When would be your latest deadline for 2.8.0 if you want to ship that? behdad
Le 18/11/2009 16:01, Behdad Esfahbod a ?crit :> On 11/18/2009 09:04 AM, Frederic Crozat wrote: >> Le 17/11/2009 00:37, Behdad Esfahbod a ?crit : >> >>> I plan to release this as 2.8.0. Will appreciate some testing in the >>> mean >>> while though. I may make a 2.7.90 snapshot later tonight or tomorrow. >>> Or may >>> release 2.8.0 straight. >> >> I confirm it fixes our upgrade issue from fontconfig 2.6.0 > > Thanks. I''m doing some minor cleaning also. When would be your latest > deadline for 2.8.0 if you want to ship that?The sooner, the better :) -- Frederic Crozat Mandriva