ref: 1b5267dad193dcbc5653bc0e11586ec71cb4d4a0
parent: cc712a248c2075b126429d677357bb3a732759a1
author: Werner Lemberg <[email protected]>
date: Sat Apr 28 17:06:15 EDT 2007
* src/sfnt/sfobjs.c (sfnt_load_face): Check error code after loading `cmap'.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-04-28 Victor Stinner <[email protected]>
+
+ * src/sfnt/sfobjs.c (sfnt_load_face): Check error code after loading
+ `cmap'.
+
2007-04-27 Werner Lemberg <[email protected]>
* src/truetype/ttgload.c (TT_Load_Simple_Glyph): Check for negative
--- a/src/sfnt/sfobjs.c
+++ b/src/sfnt/sfobjs.c
@@ -575,7 +575,10 @@
/* the following tables are often not present in embedded TrueType */
/* fonts within PDF documents, so don't check for them. */
LOAD_( maxp );
+
LOAD_( cmap );
+ if ( error )
+ goto Exit;
/* the following tables are optional in PCL fonts -- */
/* don't check for errors */