shithub: freetype+ttf2subf

Download patch

ref: d57f227121ef8e31872a5e7cfe2d10a46c81db46
parent: d7f456ee176eee33f7ee42d704d464cc784667b0
author: Werner Lemberg <[email protected]>
date: Sat Sep 26 04:44:26 EDT 2015

* src/base/ftobjs.c (Mac_Read_sfnt_Resource): Add cast.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2015-09-26  Werner Lemberg  <[email protected]>
+
+	* src/base/ftobjs.c (Mac_Read_sfnt_Resource): Add cast.
+
 2015-09-25  Werner Lemberg  <[email protected]>
 
 	[type1] Protect against invalid number of glyphs (#46029).
--- a/src/base/ftobjs.c
+++ b/src/base/ftobjs.c
@@ -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,