freetype-devel
[Top][All Lists]
Advanced

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

Re: [ft-devel] Another bug in TTF parser


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

Le Samedi 28 Avril 2007 15:07, Victor Stinner a écrit :
> To fix the bug:
>     Check error code

Patch proposition:

diff -u -r1.127 sfobjs.c
--- sfnt/sfobjs.c       10 Apr 2007 11:51:50 -0000      1.127
+++ sfnt/sfobjs.c       28 Apr 2007 13:08:55 -0000
@@ -576,6 +576,8 @@
     /* fonts within PDF documents, so don't check for them.            */
     LOAD_( maxp );
     LOAD_( cmap );
+    if ( error != SFNT_Err_Ok)
+        goto Exit;

     /* the following tables are optional in PCL fonts -- */
     /* don't check for errors                            */

Victor
-- 
Victor Stinner
http://www.inl.fr/




reply via email to

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