freetype-commit
[Top][All Lists]
Advanced

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

[freetype2] master 93715ab: [gxvalid, otvalid] s/FT_ALLOC/FT_QALLOC/ for


From: Werner Lemberg
Subject: [freetype2] master 93715ab: [gxvalid, otvalid] s/FT_ALLOC/FT_QALLOC/ for initialized buffers.
Date: Thu, 22 Apr 2021 23:07:44 -0400 (EDT)

branch: master
commit 93715ab2c4f382f6bfebf9cfe70a1ed4cf11f2b5
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Commit: 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.
---
 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 95cd644..599b9c3 100644
--- 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
diff --git a/src/gxvalid/gxvmod.c b/src/gxvalid/gxvmod.c
index 3f0f105..ad6dfb0 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 69159e8..f76ac62 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 );



reply via email to

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