[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[freetype2] master b3438cc: [pfr] s/FT_ALLOC/FT_QALLOC/ for initialized
From: |
Werner Lemberg |
Subject: |
[freetype2] master b3438cc: [pfr] s/FT_ALLOC/FT_QALLOC/ for initialized buffers. |
Date: |
Fri, 23 Apr 2021 08:35:40 -0400 (EDT) |
branch: master
commit b3438ccb31ba137f5f43c2c6da7be423629292e0
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Commit: Alexei Podtelezhnikov <apodtele@gmail.com>
[pfr] s/FT_ALLOC/FT_QALLOC/ for initialized buffers.
* src/pfr/pfrload.c (pfr_extra_item_load_font_id, pfr_aux_name_load):
Do not zero out the buffer.
---
ChangeLog | 7 +++++++
src/pfr/pfrload.c | 4 ++--
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 71942e8..ab351d3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2021-04-23 Alexei Podtelezhnikov <apodtele@gmail.com>
+ [pfr] s/FT_ALLOC/FT_QALLOC/ for initialized buffers.
+
+ * src/pfr/pfrload.c (pfr_extra_item_load_font_id, pfr_aux_name_load):
+ Do not zero out the buffer.
+
+2021-04-23 Alexei Podtelezhnikov <apodtele@gmail.com>
+
[bzip2,gzip] s/FT_ALLOC/FT_QALLOC/ for initialized buffers.
* src/bzip2/ftbzip2.c (ft_bzip2_alloc): Do not zero out the buffer.
diff --git a/src/pfr/pfrload.c b/src/pfr/pfrload.c
index aa2ffa6..17dbaeb 100644
--- a/src/pfr/pfrload.c
+++ b/src/pfr/pfrload.c
@@ -565,7 +565,7 @@
if ( phy_font->font_id )
goto Exit;
- if ( FT_ALLOC( phy_font->font_id, len + 1 ) )
+ if ( FT_QALLOC( phy_font->font_id, len + 1 ) )
goto Exit;
/* copy font ID name, and terminate it for safety */
@@ -761,7 +761,7 @@
if ( ok )
{
- if ( FT_ALLOC( result, len + 1 ) )
+ if ( FT_QALLOC( result, len + 1 ) )
goto Exit;
FT_MEM_COPY( result, p, len );
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [freetype2] master b3438cc: [pfr] s/FT_ALLOC/FT_QALLOC/ for initialized buffers.,
Werner Lemberg <=