[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[freetype2] master 90b97a8: [psaux] s/FT_ALLOC/FT_QALLOC/ for initialize
From: |
Werner Lemberg |
Subject: |
[freetype2] master 90b97a8: [psaux] s/FT_ALLOC/FT_QALLOC/ for initialized buffers. |
Date: |
Thu, 22 Apr 2021 23:01:38 -0400 (EDT) |
branch: master
commit 90b97a833d71f10ce1f9477826517ad2bbf30569
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Commit: 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
zero out the buffer.
---
ChangeLog | 9 ++++++++-
src/psaux/psobjs.c | 6 +++---
2 files changed, 11 insertions(+), 4 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index fe9080a..95cd644 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,11 @@
-2021-04-20 Alexei Podtelezhnikov <apodtele@gmail.com>
+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
+ zero out the buffer.
+
+2021-04-22 Alexei Podtelezhnikov <apodtele@gmail.com>
[base] s/FT_ALLOC/FT_QALLOC/ for initialized buffers.
diff --git a/src/psaux/psobjs.c b/src/psaux/psobjs.c
index ae8d70a..e0f61a4 100644
--- a/src/psaux/psobjs.c
+++ b/src/psaux/psobjs.c
@@ -251,7 +251,7 @@
if ( !old_base )
return;
- if ( FT_ALLOC( table->block, table->cursor ) )
+ if ( FT_QALLOC( table->block, table->cursor ) )
return;
FT_MEM_COPY( table->block, old_base, table->cursor );
shift_elements( table, old_base );
@@ -979,7 +979,7 @@
}
len = (FT_UInt)( cur - *cursor );
- if ( cur >= limit || FT_ALLOC( result, len + 1 ) )
+ if ( cur >= limit || FT_QALLOC( result, len + 1 ) )
return 0;
/* now copy the string */
@@ -1193,7 +1193,7 @@
*(FT_String**)q = NULL;
}
- if ( FT_ALLOC( string, len + 1 ) )
+ if ( FT_QALLOC( string, len + 1 ) )
goto Exit;
FT_MEM_COPY( string, cur, len );
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [freetype2] master 90b97a8: [psaux] s/FT_ALLOC/FT_QALLOC/ for initialized buffers.,
Werner Lemberg <=