diff options
author | marha <marha@users.sourceforge.net> | 2010-04-02 14:12:40 +0000 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2010-04-02 14:12:40 +0000 |
commit | 83fa9a9811e2c18cffd83a020757f7fb51ffddaa (patch) | |
tree | d71b6212a53834b53334c3bd14c63eeafd88ad20 /freetype/src/type1/t1parse.c | |
parent | 1d59691fe77c20ecb010ea8589a940c4ea6ac356 (diff) | |
download | vcxsrv-83fa9a9811e2c18cffd83a020757f7fb51ffddaa.tar.gz vcxsrv-83fa9a9811e2c18cffd83a020757f7fb51ffddaa.tar.bz2 vcxsrv-83fa9a9811e2c18cffd83a020757f7fb51ffddaa.zip |
Updated to following packages:
freetype-2.3.12
Diffstat (limited to 'freetype/src/type1/t1parse.c')
-rw-r--r-- | freetype/src/type1/t1parse.c | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/freetype/src/type1/t1parse.c b/freetype/src/type1/t1parse.c index 1bef56bcf..2a762279f 100644 --- a/freetype/src/type1/t1parse.c +++ b/freetype/src/type1/t1parse.c @@ -397,15 +397,18 @@ T1_Skip_PS_Token( parser ); cur = parser->root.cursor; - if ( *cur == '\r' ) - { - cur++; - if ( *cur == '\n' ) - cur++; - } - else if ( *cur == '\n' ) - cur++; - else + + /* according to the Type1 spec, the first cipher byte must not be */ + /* an ASCII whitespace character code (blank, tab, carriage return */ + /* or line feed). We have seen Type 1 fonts with two line feed */ + /* characters... So skip now all whitespace character codes. */ + while ( cur < limit && + ( *cur == ' ' || + *cur == '\t' || + *cur == '\r' || + *cur == '\n' ) ) + ++cur; + if ( cur >= limit ) { FT_ERROR(( "T1_Get_Private_Dict:" " `eexec' not properly terminated\n" )); |