shithub: freetype+ttf2subf

Download patch

ref: a1471038bd7ce7d35108777a1e32ac1a0e99b5b9
parent: 39bea028f8f45d70c73eb9f90a25adf1e8ebbd9e
author: David Turner <[email protected]>
date: Thu Oct 18 07:23:51 EDT 2001

fixing a "bug" that affected the Postscript hinter: growing a memory block
though "realloc" didn't clear the new bytes of memory..

git/fs: mount .git/fs: mount/attach disallowed
--- a/src/base/ftobjs.c
+++ b/src/base/ftobjs.c
@@ -109,6 +109,9 @@
     if ( !Q )
       goto Fail;
 
+    if ( size > current )
+      memset( (char*)Q + current, 0, size - current );
+
     *P = Q;
     return FT_Err_Ok;