ref: 88c95bab744667219bec90c733b2b1b68ecc57de
parent: 90c7efc8f233100557514b01f37d50531afbfa46
author: suzuki toshiya <[email protected]>
date: Fri Jul 31 20:30:13 EDT 2009
otvalid: Count the table size on memory by ptrdiff_t.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
2009-07-31 suzuki toshiya <[email protected]>
+ 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-31 suzuki toshiya <[email protected]>
+
otvalid: Prevent an overflow by GPOS/GSUB 32b-bit offset.
* src/otvalid/otvgpos.c (otv_ExtensionPos_validate):
--- a/src/otvalid/otvgpos.c
+++ b/src/otvalid/otvgpos.c
@@ -209,7 +209,7 @@
{
if ( format & 1 )
{
- FT_UInt table_size;
+ FT_PtrDist table_size;
OTV_OPTIONAL_TABLE( device );