Commit 63abb4bc63b06e537d0827cda7912259798083f2

Werner Lemberg 2003-12-22T11:35:36

* src/type1/t1load.c (parse_dict): Stop parsing if `eexec' keyword is encountered.

diff --git a/ChangeLog b/ChangeLog
index 37373a2..3678898 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2003-12-21  Werner Lemberg  <wl@gnu.org>
+
+	* src/type1/t1load.c (parse_dict): Stop parsing if `eexec' keyword
+	is encountered.
+
 2003-12-19  Werner Lemberg  <wl@gnu.org>
 
 	* src/cff/cfftypes.h (CFF_MAX_CID_FONTS): Increase to 32.  For
diff --git a/src/type1/t1load.c b/src/type1/t1load.c
index 59cf2b9..6d0799e 100644
--- a/src/type1/t1load.c
+++ b/src/type1/t1load.c
@@ -1527,6 +1527,11 @@
         parser->root.cursor = cur2;
       }
 
+      /* look for `eexec' */
+      else if ( *cur == 'e' && cur + 5 < limit &&
+                ft_strncmp( (char*)cur, "eexec", 5 ) == 0 )
+        break;
+
       /* look for `closefile' which ends the eexec section */
       else if ( *cur == 'c' && cur + 9 < limit &&
                 ft_strncmp( (char*)cur, "closefile", 9 ) == 0 )