sfnt: Extend TT_BDF->strings_size to FT_ULong for huge BDF.

This commit is contained in:
suzuki toshiya 2009-08-01 00:32:13 +09:00
parent 259568cf68
commit 9c1aac0011
3 changed files with 14 additions and 2 deletions

View File

@ -1,3 +1,15 @@
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
sfnt: Extend TT_BDF->strings_size to FT_ULong for huge BDF.
* include/freetype/internal/tttypes.h: The type
of TT_BDF->string_size is extended from FT_UInt32
to FT_ULong, because BDF specification does not
restrict the length of string.
* src/sfnt/ttbdf.c: The scratch variable `strings'
to load TT_BDF->string_size is matched with
TT_BDF->string_size.
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
psaux: Handle the string length by FT_Offset variables.

View File

@ -902,7 +902,7 @@ FT_BEGIN_HEADER
FT_Byte* table;
FT_Byte* table_end;
FT_Byte* strings;
FT_UInt32 strings_size;
FT_ULong strings_size;
FT_UInt num_strikes;
FT_Bool loaded;

View File

@ -84,7 +84,7 @@
FT_Byte* p = bdf->table;
FT_UInt version = FT_NEXT_USHORT( p );
FT_UInt num_strikes = FT_NEXT_USHORT( p );
FT_UInt32 strings = FT_NEXT_ULONG ( p );
FT_ULong strings = FT_NEXT_ULONG ( p );
FT_UInt count;
FT_Byte* strike;