* src/ftccmap.c (FTC_CMapCache_Lookup): changed the threshold

used to detect rogue clients from 4 to 16. This is to prevent
        some segmentation faults with fonts like KozMinProVI-Regular.otf
        which comes from the Japanese Adobe Reader Asian Font pack.
This commit is contained in:
David Turner 2006-05-17 12:59:35 +00:00
parent de2d90af6e
commit dc3ff31c3f
2 changed files with 13 additions and 2 deletions

View File

@ -1,3 +1,10 @@
2006-05-17 David Turner <david@freetype.org>
* src/ftccmap.c (FTC_CMapCache_Lookup): changed the threshold
used to detect rogue clients from 4 to 16. This is to prevent
some segmentation faults with fonts like KozMinProVI-Regular.otf
which comes from the Japanese Adobe Reader Asian Font pack.
2007-05-17 Werner Lemberg <wl@gnu.org>
* src/cff/cffload.c (cff_font_done): Deallocate subfont array. This

8
src/cache/ftccmap.c vendored
View File

@ -305,9 +305,13 @@
* more than a few charmaps, so if the index is very large...
*
* It is also very unlikely that a rogue client is interested
* in Unicode values 0 to 3.
* in Unicode values 0 to 15.
*
* NOTE: The original threshold was 4, but we found a font
* from the Adobe Acrobat Reader Pack, named
* "KozMinProVI-Regular.otf" which contained more than 5 charmaps.
*/
if ( cmap_index >= 4 )
if ( cmap_index >= 16 )
{
FTC_OldCMapDesc desc = (FTC_OldCMapDesc) face_id;