diff options
author | Werner Lemberg <wl@gnu.org> | 2005-02-13 21:42:42 +0000 |
---|---|---|
committer | Werner Lemberg <wl@gnu.org> | 2005-02-13 21:42:42 +0000 |
commit | 1d565fb01bfe2cc02955b675230a600bb8bb1b56 (patch) | |
tree | 8f0fd8b24c512033033fcc81ae3b761405d4aea3 /src/type1/t1parse.c | |
parent | a33bd861d7866579953c990949831d8353c15a8e (diff) | |
download | freetype2-1d565fb01bfe2cc02955b675230a600bb8bb1b56.tar.gz |
* src/type1/t1load.c (read_binary_data): Return more meaningful
value.
(parse_encoding, parse_subrs, parse_charstrings, parse_dict): Check
parser error value after call to T1_Skip_PS_Token (where necessary).
* src/type1/t1parse.c (T1_Get_Private_Dict): Check parser error
value after call to T1_Skip_PS_Token.
* src/cid/cidparse.c (cid_parser_new): Check parser error value
after call to cid_parser_skip_PS_token.
* src/type42/t42parse.c (t42_parse_encoding, t42_parse_sfnts,
t42_parse_charstrings, t42_parse_dict): Check parser error value
after call to T1_Skip_PS_Token (where necessary).
* src/psaux/psobjc.c (skip_string, ps_parser_skip_PS_token,
ps_tobytes): Add error messages.
Diffstat (limited to 'src/type1/t1parse.c')
-rw-r--r-- | src/type1/t1parse.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/type1/t1parse.c b/src/type1/t1parse.c index 544aa093f..501d9f2ab 100644 --- a/src/type1/t1parse.c +++ b/src/type1/t1parse.c @@ -4,7 +4,7 @@ /* */ /* Type 1 parser (body). */ /* */ -/* Copyright 1996-2001, 2002, 2003, 2004 by */ +/* Copyright 1996-2001, 2002, 2003, 2004, 2005 by */ /* David Turner, Robert Wilhelm, and Werner Lemberg. */ /* */ /* This file is part of the FreeType project, and may only be used, */ @@ -337,6 +337,8 @@ goto Found; T1_Skip_PS_Token( parser ); + if ( parser->root.error ) + break; T1_Skip_Spaces ( parser ); cur = parser->root.cursor; } |