otvalid: Prevent an overflow by GPOS/GSUB 32b-bit offset.

int-not32-changes
suzuki toshiya 16 years ago
parent 4053559b19
commit d5337b8965
  1. 11
      ChangeLog
  2. 3
      src/otvalid/otvgpos.c
  3. 3
      src/otvalid/otvgsub.c

@ -1,3 +1,14 @@
2009-07-03 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
otvalid: Prevent an overflow by GPOS/GSUB 32b-bit offset.
* src/otvalid/otvgpos.c (otv_ExtensionPos_validate):
Extend ExtensionOffset from FT_UInt to FT_ULong, to
cover 32-bit offset on 16-bit platform.
* src/otvalid/otvgsub.c (otv_ExtensionSubst_validate):
Ditto.
2009-07-03 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
ftobjs.c: Prevent an overflow in glyph index handling.

@ -911,7 +911,8 @@
{
case 1: /* ExtensionPosFormat1 */
{
FT_UInt ExtensionLookupType, ExtensionOffset;
FT_UInt ExtensionLookupType;
FT_ULong ExtensionOffset;
OTV_Validate_Func validate;

@ -415,7 +415,8 @@
{
case 1: /* ExtensionSubstFormat1 */
{
FT_UInt ExtensionLookupType, ExtensionOffset;
FT_UInt ExtensionLookupType;
FT_ULong ExtensionOffset;
OTV_Validate_Func validate;

Loading…
Cancel
Save