forked from minhngoc25a/freetype2
[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.
This commit is contained in:
parent
1e525c62ae
commit
b3438ccb31
|
@ -1,3 +1,10 @@
|
|||
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.
|
||||
|
|
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue