shithub: freetype+ttf2subf

Download patch

ref: 9f5d3de3f00d457e375e39790334f9414805ebf1
parent: a87b08a7afb5f263b24a87271060762f00f21536
author: Wu, Chia-I (吳佳一) <[email protected]>
date: Tue Feb 28 08:21:50 EST 2006

* src/base/ftutil.c (ft_mem_qalloc) [FT_STRICT_ALIASING]: Do not
return error if size == 0.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2006-02-28  Chia-I Wu  <[email protected]>
 
+	* src/base/ftutil.c (ft_mem_qalloc) [FT_STRICT_ALIASING]: Do not
+	return error when size == 0.
+
+2006-02-28  Chia-I Wu  <[email protected]>
+
 	* src/base/ftobjs.c (FT_Done_Library): Modules are removed in the
 	reversed order so that type42 module is removed before truetype
 	module.  This avoids double free in some occasions.
--- a/src/base/ftutil.c
+++ b/src/base/ftutil.c
@@ -92,7 +92,7 @@
       if ( block == NULL )
         error = FT_Err_Out_Of_Memory;
     }
-    else
+    else if ( size < 0 )
     {
       /* may help catch/prevent security issues */
       error = FT_Err_Invalid_Argument;