mirror of https://github.com/freetype/freetype
* src/base/ftobjs.c (Mac_Read_sfnt_Resource): Add cast.
This commit is contained in:
parent
d7f456ee17
commit
d57f227121
|
@ -1,3 +1,7 @@
|
|||
2015-09-26 Werner Lemberg <wl@gnu.org>
|
||||
|
||||
* src/base/ftobjs.c (Mac_Read_sfnt_Resource): Add cast.
|
||||
|
||||
2015-09-25 Werner Lemberg <wl@gnu.org>
|
||||
|
||||
[type1] Protect against invalid number of glyphs (#46029).
|
||||
|
|
|
@ -1776,7 +1776,7 @@
|
|||
goto Exit;
|
||||
if ( rlen == -1 )
|
||||
return FT_THROW( Cannot_Open_Resource );
|
||||
if ( rlen > FT_MAC_RFORK_MAX_LEN )
|
||||
if ( (FT_ULong)rlen > FT_MAC_RFORK_MAX_LEN )
|
||||
return FT_THROW( Invalid_Offset );
|
||||
|
||||
error = open_face_PS_from_sfnt_stream( library,
|
||||
|
|
Loading…
Reference in New Issue