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 );