|
|
|
@ -1548,10 +1548,10 @@ |
|
|
|
|
FT_LOCAL_DEF( FT_Error ) |
|
|
|
|
TT_Build_CMaps( TT_Face face ) |
|
|
|
|
{ |
|
|
|
|
FT_UInt num_cmaps; |
|
|
|
|
FT_Byte* table = face->cmap_table; |
|
|
|
|
FT_Byte* limit = table + face->cmap_size; |
|
|
|
|
FT_Byte* p = table; |
|
|
|
|
FT_Byte* table = face->cmap_table; |
|
|
|
|
FT_Byte* limit = table + face->cmap_size; |
|
|
|
|
volatile FT_UInt num_cmaps; |
|
|
|
|
volatile FT_Byte* p = table; |
|
|
|
|
|
|
|
|
|
if ( p + 4 > limit ) |
|
|
|
|
return FT_Err_Invalid_Table; |
|
|
|
@ -1580,10 +1580,10 @@ |
|
|
|
|
|
|
|
|
|
if ( offset && table + offset + 2 < limit ) |
|
|
|
|
{ |
|
|
|
|
FT_Byte* cmap = table + offset; |
|
|
|
|
FT_UInt format = TT_PEEK_USHORT(cmap); |
|
|
|
|
const TT_CMap_Class* pclazz = tt_cmap_classes; |
|
|
|
|
TT_CMap_Class clazz; |
|
|
|
|
FT_Byte* cmap = table + offset; |
|
|
|
|
FT_UInt format = TT_PEEK_USHORT(cmap); |
|
|
|
|
volatile const TT_CMap_Class* pclazz = tt_cmap_classes; |
|
|
|
|
TT_CMap_Class clazz; |
|
|
|
|
|
|
|
|
|
for ( ; *pclazz; pclazz++ ) |
|
|
|
|
{ |
|
|
|
|