From a1471038bd7ce7d35108777a1e32ac1a0e99b5b9 Mon Sep 17 00:00:00 2001 From: David Turner Date: Thu, 18 Oct 2001 11:23:51 +0000 Subject: [PATCH] fixing a "bug" that affected the Postscript hinter: growing a memory block though "realloc" didn't clear the new bytes of memory.. --- src/base/ftobjs.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/base/ftobjs.c b/src/base/ftobjs.c index b4ec9b6d1..370730825 100644 --- 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;