* src/sfnt/ttmtx.c (tt_face_get_metrics)
[!FT_CONFIG_OPTION_OLD_INTERNALS]: Fix limit check.
This commit is contained in:
parent
b800329782
commit
011d111218
|
@ -1,3 +1,8 @@
|
||||||
|
2007-01-21 Werner Lemberg <wl@gnu.org>
|
||||||
|
|
||||||
|
* src/sfnt/ttmtx.c (tt_face_get_metrics)
|
||||||
|
[!FT_CONFIG_OPTION_OLD_INTERNALS]: Fix limit check.
|
||||||
|
|
||||||
2007-01-17 Werner Lemberg <wl@gnu.org>
|
2007-01-17 Werner Lemberg <wl@gnu.org>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -368,11 +368,11 @@
|
||||||
if ( gindex < (FT_UInt)k )
|
if ( gindex < (FT_UInt)k )
|
||||||
{
|
{
|
||||||
table_pos += 4 * gindex;
|
table_pos += 4 * gindex;
|
||||||
if ( table_pos + 6 > table_end )
|
if ( table_pos + 4 > table_end )
|
||||||
goto NoData;
|
goto NoData;
|
||||||
|
|
||||||
if ( FT_STREAM_SEEK( table_pos ) ||
|
if ( FT_STREAM_SEEK( table_pos ) ||
|
||||||
FT_READ_USHORT( *aadvance) ||
|
FT_READ_USHORT( *aadvance ) ||
|
||||||
FT_READ_SHORT( *abearing ) )
|
FT_READ_SHORT( *abearing ) )
|
||||||
goto NoData;
|
goto NoData;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue