shithub: freetype+ttf2subf

Download patch

ref: bebc7b11c52c00e8edfaf2ba38ca25d135404a1c
parent: ba03af6f91321ab7688f7368730d9fa650fd6c27
author: Werner Lemberg <[email protected]>
date: Fri Jun 1 02:32:30 EDT 2007

* src/cid/cidparse.c (cid_parser_new): Don't continue second search
pass for `StartData' if an error has occurred.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-06-01  Werner Lemberg  <[email protected]>
+
+	* src/cid/cidparse.c (cid_parser_new): Don't continue second search
+	pass for `StartData' if an error has occurred.
+
 2007-05-30  Werner Lemberg  <[email protected]>
 
 	* src/type1/t1load.c (parse_subrs, parse_charstrings): Protect
--- a/src/cid/cidparse.c
+++ b/src/cid/cidparse.c
@@ -165,7 +165,10 @@
     while ( cur < limit )
     {
       if ( parser->root.error )
-        break;
+      {
+        error = parser->root.error;
+        goto Exit;
+      }
 
       if ( cur[0] == 'S' && ft_strncmp( (char*)cur, "StartData", 9 ) == 0 )
       {