freetype-commit
[Top][All Lists]
Advanced

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

[Git][freetype/freetype][master] [psaux] s/FT_ALLOC/FT_QALLOC/ for initi


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

Alexei Podtelezhnikov pushed to branch master at FreeType / FreeType

Commits:

2 changed files:

Changes:

  • ChangeLog
    1
    -2021-04-20  Alexei Podtelezhnikov  <apodtele@gmail.com>
    
    1
    +2021-04-22  Alexei Podtelezhnikov  <apodtele@gmail.com>
    
    2
    +
    
    3
    +	[psaux] s/FT_ALLOC/FT_QALLOC/ for initialized buffers.
    
    4
    +
    
    5
    +	* src/psaux/psobjs.c (ps_table_done, ps_parser_load_field): Do not
    
    6
    +	zero out the buffer.
    
    7
    +
    
    8
    +2021-04-22  Alexei Podtelezhnikov  <apodtele@gmail.com>
    
    2 9
     
    
    3 10
     	[base] s/FT_ALLOC/FT_QALLOC/ for initialized buffers.
    
    4 11
     
    

  • src/psaux/psobjs.c
    ... ... @@ -251,7 +251,7 @@
    251 251
         if ( !old_base )
    
    252 252
           return;
    
    253 253
     
    
    254
    -    if ( FT_ALLOC( table->block, table->cursor ) )
    
    254
    +    if ( FT_QALLOC( table->block, table->cursor ) )
    
    255 255
           return;
    
    256 256
         FT_MEM_COPY( table->block, old_base, table->cursor );
    
    257 257
         shift_elements( table, old_base );
    
    ... ... @@ -979,7 +979,7 @@
    979 979
         }
    
    980 980
     
    
    981 981
         len = (FT_UInt)( cur - *cursor );
    
    982
    -    if ( cur >= limit || FT_ALLOC( result, len + 1 ) )
    
    982
    +    if ( cur >= limit || FT_QALLOC( result, len + 1 ) )
    
    983 983
           return 0;
    
    984 984
     
    
    985 985
         /* now copy the string */
    
    ... ... @@ -1193,7 +1193,7 @@
    1193 1193
                 *(FT_String**)q = NULL;
    
    1194 1194
               }
    
    1195 1195
     
    
    1196
    -          if ( FT_ALLOC( string, len + 1 ) )
    
    1196
    +          if ( FT_QALLOC( string, len + 1 ) )
    
    1197 1197
                 goto Exit;
    
    1198 1198
     
    
    1199 1199
               FT_MEM_COPY( string, cur, len );
    


  • reply via email to

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