freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ft-devel] Another bug in TTF parser


From: Victor Stinner
Subject: [ft-devel] Another bug in TTF parser
Date: Sat, 28 Apr 2007 13:28:08 +0200
User-agent: KMail/1.9.5

In src/sfnt/sfobjs.c, near line 582, function sfnt_load_face(): LOAD(cmap) may 
fails whereas error code is not used :-/

If it fails, loader->cmap_table is NULL but it is used later 
(tt_face_build_cmaps() called by sfnt_load_face()).

Lines around the bug:
    /* the following tables are often not present in embedded TrueType */
    /* fonts within PDF documents, so don't check for them.            */
    LOAD_( maxp );
    LOAD_( cmap );

To fix the bug:
    Check error error
 or Fix tt_face_build_cmaps()

File with the bug:
  http://www.haypocalc.com/tmp/null_cmap.ttf

Victor
-- 
Victor Stinner aka haypo
http://hachoir.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]