From aed4ae7da96caf9ff77963690b7ab5e8fdbdc4b9 Mon Sep 17 00:00:00 2001 From: suzuki toshiya Date: Fri, 3 Jul 2009 18:01:38 +0900 Subject: [PATCH] gxvalid: Guarantee `trak' table size upto 32-bit. --- ChangeLog | 8 ++++++++ src/gxvalid/gxvtrak.c | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 2821806a5..5039a93a6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2009-07-03 suzuki toshiya + + gxvalid: Guarantee `trak' table size upto 32-bit. + + * src/gxvalid/gxvtrak.c (gxv_trak_validate): + The type of `offset' is changed from FT_UInt to + FT_Offset, for 16-bit platforms. + 2009-07-03 suzuki toshiya type1: Fix a data type mismatching with its source. diff --git a/src/gxvalid/gxvtrak.c b/src/gxvalid/gxvtrak.c index 432ee4e27..df3fd15c0 100644 --- a/src/gxvalid/gxvtrak.c +++ b/src/gxvalid/gxvtrak.c @@ -198,7 +198,7 @@ { FT_Bytes p = table; FT_Bytes limit = 0; - FT_UInt table_size; + FT_Offset table_size; GXV_ValidatorRec validrec; GXV_Validator valid = &validrec;