ref: 93715ab2c4f382f6bfebf9cfe70a1ed4cf11f2b5
parent: 90b97a833d71f10ce1f9477826517ad2bbf30569
author: Alexei Podtelezhnikov <apodtele@gmail.com>
date: Thu Apr 22 19:07:01 EDT 2021
[gxvalid,otvalid] s/FT_ALLOC/FT_QALLOC/ for initialized buffers. * src/gxvalid/gxvmod.c (gxv_load_table): Do not zero out the buffer. * src/otvalid/otvmod.c (otv_load_table): Ditto.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2021-04-22 Alexei Podtelezhnikov <apodtele@gmail.com>
+ [gxvalid,otvalid] s/FT_ALLOC/FT_QALLOC/ for initialized buffers.
+
+ * src/gxvalid/gxvmod.c (gxv_load_table): Do not zero out the buffer.
+ * src/otvalid/otvmod.c (otv_load_table): Ditto.
+
+2021-04-22 Alexei Podtelezhnikov <apodtele@gmail.com>
+
[psaux] s/FT_ALLOC/FT_QALLOC/ for initialized buffers.
* src/psaux/psobjs.c (ps_table_done, ps_parser_load_field): Do not
--- a/src/gxvalid/gxvmod.c
+++ b/src/gxvalid/gxvmod.c
@@ -62,7 +62,7 @@
if ( error )
goto Exit;
- if ( FT_ALLOC( *table, *table_len ) )
+ if ( FT_QALLOC( *table, *table_len ) )
goto Exit;
error = FT_Load_Sfnt_Table( face, tag, 0, *table, table_len );
--- a/src/otvalid/otvmod.c
+++ b/src/otvalid/otvmod.c
@@ -53,7 +53,7 @@
if ( error )
goto Exit;
- if ( FT_ALLOC( *table, *table_len ) )
+ if ( FT_QALLOC( *table, *table_len ) )
goto Exit;
error = FT_Load_Sfnt_Table( face, tag, 0, *table, table_len );