otvalid: Count the table size on memory by ptrdiff_t.

int-not32-changes
suzuki toshiya 16 years ago
parent d5337b8965
commit 351d3c9682
  1. 9
      ChangeLog
  2. 2
      src/otvalid/otvgpos.c

@ -1,3 +1,12 @@
2009-07-03 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
otvalid: Count the table size on memory by ptrdiff_t.
* src/otvalid/otvgpos.c (otv_ValueRecord_validate):
Change the type of table size from FT_UInt to
FT_PtrDist because it is calculated by the memory
addresses.
2009-07-03 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
otvalid: Prevent an overflow by GPOS/GSUB 32b-bit offset.

@ -209,7 +209,7 @@
{
if ( format & 1 )
{
FT_UInt table_size;
FT_PtrDist table_size;
OTV_OPTIONAL_TABLE( device );

Loading…
Cancel
Save