diff options
author | Owen Taylor <otaylor@redhat.com> | 2003-04-16 03:58:05 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2003-04-16 03:58:05 +0000 |
commit | e07764486982abd1a2d2d83ddca2ee7f52a6ff22 (patch) | |
tree | 66d68899108ee50cbaf8aa84b225b39a7cf71099 /pango/opentype/ftxgsub.c | |
parent | 2c43ed9fd9815446e4d3246fef5459cb554417c4 (diff) | |
download | pango-e07764486982abd1a2d2d83ddca2ee7f52a6ff22.tar.gz |
When loading in Load_Chain{Sub,Pos}ClassRule, the limit we have only
Tue Apr 15 11:49:39 2003 Owen Taylor <otaylor@redhat.com>
* pango/opentype/ftxg{sub/pos}.c: When loading
in Load_Chain{Sub,Pos}ClassRule, the limit we
have only applies to the input ClassDef table.
Fixes problem with Arial Unicode. Much help from
Noah Levitt in tracing this down.
Diffstat (limited to 'pango/opentype/ftxgsub.c')
-rw-r--r-- | pango/opentype/ftxgsub.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pango/opentype/ftxgsub.c b/pango/opentype/ftxgsub.c index 6cdf3bd6..7cf5acb2 100644 --- a/pango/opentype/ftxgsub.c +++ b/pango/opentype/ftxgsub.c @@ -3007,13 +3007,14 @@ lookahead_offset = GET_UShort(); /* `ChainSubClassSetCount' is the upper limit for input class values, - thus we read it now to make an additional safety check. */ + thus we read it now to make an additional safety check. No limit + is known or needed for the other two class definitions */ count = ccsf2->ChainSubClassSetCount = GET_UShort(); FORGET_Frame(); - if ( ( error = Load_EmptyOrClassDefinition( &ccsf2->BacktrackClassDef, count, + if ( ( error = Load_EmptyOrClassDefinition( &ccsf2->BacktrackClassDef, 65535, backtrack_offset, base_offset, stream ) ) != TT_Err_Ok ) goto Fail5; @@ -3022,7 +3023,7 @@ input_offset, base_offset, stream ) ) != TT_Err_Ok ) goto Fail4; - if ( ( error = Load_EmptyOrClassDefinition( &ccsf2->LookaheadClassDef, count, + if ( ( error = Load_EmptyOrClassDefinition( &ccsf2->LookaheadClassDef, 65535, lookahead_offset, base_offset, stream ) ) != TT_Err_Ok ) goto Fail3; |