summaryrefslogtreecommitdiff
path: root/pango/opentype/ftxgpos.c
diff options
context:
space:
mode:
Diffstat (limited to 'pango/opentype/ftxgpos.c')
-rw-r--r--pango/opentype/ftxgpos.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/pango/opentype/ftxgpos.c b/pango/opentype/ftxgpos.c
index 55832872..d7a4e137 100644
--- a/pango/opentype/ftxgpos.c
+++ b/pango/opentype/ftxgpos.c
@@ -4832,13 +4832,14 @@
lookahead_offset = GET_UShort();
/* `ChainPosClassSetCount' 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 = ccpf2->ChainPosClassSetCount = GET_UShort();
FORGET_Frame();
- if ( ( error = Load_EmptyOrClassDefinition( &ccpf2->BacktrackClassDef, count,
+ if ( ( error = Load_EmptyOrClassDefinition( &ccpf2->BacktrackClassDef, 65535,
backtrack_offset, base_offset,
stream ) ) != TT_Err_Ok )
goto Fail5;
@@ -4846,7 +4847,7 @@
input_offset, base_offset,
stream ) ) != TT_Err_Ok )
goto Fail4;
- if ( ( error = Load_EmptyOrClassDefinition( &ccpf2->LookaheadClassDef, count,
+ if ( ( error = Load_EmptyOrClassDefinition( &ccpf2->LookaheadClassDef, 65535,
lookahead_offset, base_offset,
stream ) ) != TT_Err_Ok )
goto Fail3;