From 93715ab2c4f382f6bfebf9cfe70a1ed4cf11f2b5 Mon Sep 17 00:00:00 2001 From: Alexei Podtelezhnikov Date: Thu, 22 Apr 2021 23:07:01 -0400 Subject: [PATCH] [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. --- ChangeLog | 7 +++++++ src/gxvalid/gxvmod.c | 2 +- src/otvalid/otvmod.c | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 95cd6447f..599b9c399 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2021-04-22 Alexei Podtelezhnikov + + [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 [psaux] s/FT_ALLOC/FT_QALLOC/ for initialized buffers. diff --git a/src/gxvalid/gxvmod.c b/src/gxvalid/gxvmod.c index 3f0f1053c..ad6dfb075 100644 --- 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 ); diff --git a/src/otvalid/otvmod.c b/src/otvalid/otvmod.c index 69159e83b..f76ac62fe 100644 --- 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 );