freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[freetype2] master 4e1c6a1: * src/gzip/ftgzip.c (ft_gzip_alloc): Zero ou


From: Werner Lemberg
Subject: [freetype2] master 4e1c6a1: * src/gzip/ftgzip.c (ft_gzip_alloc): Zero out memory again.
Date: Fri, 30 Apr 2021 09:35:50 -0400 (EDT)

branch: master
commit 4e1c6a12e5f285d57e66818177013cce7efbd7b0
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Commit: Alexei Podtelezhnikov <apodtele@gmail.com>

    * src/gzip/ftgzip.c (ft_gzip_alloc): Zero out memory again.
---
 ChangeLog         | 4 ++++
 src/gzip/ftgzip.c | 3 ++-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 5f61c1c..3cd3bf8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2021-04-30  Alexei Podtelezhnikov  <apodtele@gmail.com>
+
+       * src/gzip/ftgzip.c (ft_gzip_alloc): Zero out memory again.
+
 2021-04-27  Alexei Podtelezhnikov  <apodtele@gmail.com>
 
        [lzw] Preserve decompression stack when relocating to heap.
diff --git a/src/gzip/ftgzip.c b/src/gzip/ftgzip.c
index 064b8f5..0dc0a61 100644
--- a/src/gzip/ftgzip.c
+++ b/src/gzip/ftgzip.c
@@ -130,7 +130,8 @@
     FT_Pointer  p  = NULL;
 
 
-    (void)FT_QALLOC( p, sz );
+    /* allocate and zero out */
+    (void)FT_ALLOC( p, sz );
     return p;
   }
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]