summaryrefslogtreecommitdiff
path: root/pango/opentype/ftxopen.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2005-11-17 06:28:11 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2005-11-17 06:28:11 +0000
commitd4a4b736fa97361a8f5f7d010c1b34cb48d34925 (patch)
tree0075821b8594ef6593a46f672a5b8718c4740a30 /pango/opentype/ftxopen.c
parente1cfe6720d1fea7aa47882a31656b24da2a7380f (diff)
downloadpango-d4a4b736fa97361a8f5f7d010c1b34cb48d34925.tar.gz
Part of #101079:
2005-11-17 Behdad Esfahbod <behdad@gnome.org> Part of #101079: * pango/opentype/ftxopen.c (Load_Lookup): In extension subtables, offset is relative to the extension subtable, not the original table. (Greg Aumann) * pango/opentype/ftxgpos.c (Load_BaseArray): When reading BaseAnchor, skip offsets that are zero. Works around bug in Doulos SIL Regular.
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();
}