summaryrefslogtreecommitdiff
path: root/pango/opentype/ftxopen.c
diff options
context:
space:
mode:
Diffstat (limited to 'pango/opentype/ftxopen.c')
-rw-r--r--pango/opentype/ftxopen.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/pango/opentype/ftxopen.c b/pango/opentype/ftxopen.c
index 75f66be5..c2f04850 100644
--- a/pango/opentype/ftxopen.c
+++ b/pango/opentype/ftxopen.c
@@ -631,9 +631,11 @@
if ( FILE_Seek( new_offset ) || ACCESS_Frame( 8L ) )
goto Fail;
- (void)GET_UShort(); /* format should be 1 */
+ if (GET_UShort() != 1) /* format should be 1 */
+ goto Fail;
+
l->LookupType = GET_UShort();
- new_offset = GET_ULong() + base_offset;
+ new_offset += GET_ULong();
FORGET_Frame();
}