freetype-commit
[Top][All Lists]
Advanced

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

[Git][freetype/freetype][master] [pfr] s/FT_ALLOC/FT_QALLOC/ for initial


From: Alexei Podtelezhnikov
Subject: [Git][freetype/freetype][master] [pfr] s/FT_ALLOC/FT_QALLOC/ for initialized buffers.
Date: Fri, 23 Apr 2021 12:35:38 +0000

Alexei Podtelezhnikov pushed to branch master at FreeType / FreeType

Commits:

2 changed files:

Changes:

  • ChangeLog
    1
    +2021-04-23  Alexei Podtelezhnikov  <apodtele@gmail.com>
    
    2
    +
    
    3
    +	[pfr] s/FT_ALLOC/FT_QALLOC/ for initialized buffers.
    
    4
    +
    
    5
    +	* src/pfr/pfrload.c (pfr_extra_item_load_font_id, pfr_aux_name_load):
    
    6
    +	Do not zero out the buffer.
    
    7
    +
    
    1 8
     2021-04-23  Alexei Podtelezhnikov  <apodtele@gmail.com>
    
    2 9
     
    
    3 10
     	[bzip2,gzip] s/FT_ALLOC/FT_QALLOC/ for initialized buffers.
    

  • src/pfr/pfrload.c
    ... ... @@ -565,7 +565,7 @@
    565 565
         if ( phy_font->font_id )
    
    566 566
           goto Exit;
    
    567 567
     
    
    568
    -    if ( FT_ALLOC( phy_font->font_id, len + 1 ) )
    
    568
    +    if ( FT_QALLOC( phy_font->font_id, len + 1 ) )
    
    569 569
           goto Exit;
    
    570 570
     
    
    571 571
         /* copy font ID name, and terminate it for safety */
    
    ... ... @@ -761,7 +761,7 @@
    761 761
     
    
    762 762
         if ( ok )
    
    763 763
         {
    
    764
    -      if ( FT_ALLOC( result, len + 1 ) )
    
    764
    +      if ( FT_QALLOC( result, len + 1 ) )
    
    765 765
             goto Exit;
    
    766 766
     
    
    767 767
           FT_MEM_COPY( result, p, len );
    


  • reply via email to

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