ref: 1e525c62ae5166776c6badab0e45656370b2b344
parent: a0fb6dbcd9ecac640fd34d97cf332c32df7465af
author: Alexei Podtelezhnikov <[email protected]>
date: Fri Apr 23 04:24:22 EDT 2021
[bzip2,gzip] s/FT_ALLOC/FT_QALLOC/ for initialized buffers. * src/bzip2/ftbzip2.c (ft_bzip2_alloc): Do not zero out the buffer. * src/gzip/ftgzip.c (ft_gzip_alloc, FT_Stream_OpenGzip): Ditto.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2021-04-23 Alexei Podtelezhnikov <[email protected]>
+ [bzip2,gzip] s/FT_ALLOC/FT_QALLOC/ for initialized buffers.
+
+ * src/bzip2/ftbzip2.c (ft_bzip2_alloc): Do not zero out the buffer.
+ * src/gzip/ftgzip.c (ft_gzip_alloc, FT_Stream_OpenGzip): Ditto.
+
+2021-04-23 Alexei Podtelezhnikov <[email protected]>
+
[pcf,bdf,winfonts] s/FT_ALLOC/FT_QALLOC/ for initialized buffers.
* src/pcf/pcfread.c (pcf_interpret_style): Do not zero out the buffer.
--- a/src/bzip2/ftbzip2.c
+++ b/src/bzip2/ftbzip2.c
@@ -70,7 +70,7 @@
FT_Pointer p = NULL;
- (void)FT_ALLOC( p, sz );
+ (void)FT_QALLOC( p, sz );
return p;
}
--- a/src/gzip/ftgzip.c
+++ b/src/gzip/ftgzip.c
@@ -130,7 +130,7 @@
FT_Pointer p = NULL;
- (void)FT_ALLOC( p, sz );
+ (void)FT_QALLOC( p, sz );
return p;
}
@@ -671,7 +671,7 @@
FT_Byte* zip_buff = NULL;
- if ( !FT_ALLOC( zip_buff, zip_size ) )
+ if ( !FT_QALLOC( zip_buff, zip_size ) )
{
FT_ULong count;