From bebc7b11c52c00e8edfaf2ba38ca25d135404a1c Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Fri, 1 Jun 2007 06:32:30 +0000 Subject: [PATCH] * src/cid/cidparse.c (cid_parser_new): Don't continue second search pass for `StartData' if an error has occurred. --- ChangeLog | 5 +++++ src/cid/cidparse.c | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 2b9e7978a..af8e5a1ce 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-06-01 Werner Lemberg + + * 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 * src/type1/t1load.c (parse_subrs, parse_charstrings): Protect diff --git a/src/cid/cidparse.c b/src/cid/cidparse.c index c2381fac1..29e45f979 100644 --- 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 ) {