freetype-commit
[Top][All Lists]
Advanced

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

[Git][freetype/freetype][master] * src/cid/cidload.c (cid_read_subrs): T


From: Alexei Podtelezhnikov (@apodtele)
Subject: [Git][freetype/freetype][master] * src/cid/cidload.c (cid_read_subrs): Tweak allocaton macro.
Date: Sun, 02 May 2021 03:49:41 +0000

Alexei Podtelezhnikov pushed to branch master at FreeType / FreeType

Commits:

2 changed files:

Changes:

  • ChangeLog
    1
    +2021-05-01  Alexei Podtelezhnikov  <apodtele@gmail.com>
    
    2
    +
    
    3
    +	* src/cid/cidload.c (cid_read_subrs): Tweak allocaton macro.
    
    4
    +
    
    1 5
     2021-05-01  Alexei Podtelezhnikov  <apodtele@gmail.com>
    
    2 6
     
    
    3 7
     	[sfnt] Avoid some memory zeroing.
    

  • src/cid/cidload.c
    ... ... @@ -589,8 +589,8 @@
    589 589
           /* allocate, and read them                     */
    
    590 590
           data_len = offsets[num_subrs] - offsets[0];
    
    591 591
     
    
    592
    -      if ( FT_NEW_ARRAY( subr->code, num_subrs + 1 ) ||
    
    593
    -           FT_QALLOC( subr->code[0], data_len )      )
    
    592
    +      if ( FT_QNEW_ARRAY( subr->code, num_subrs + 1 ) ||
    
    593
    +           FT_QALLOC( subr->code[0], data_len )       )
    
    594 594
             goto Fail;
    
    595 595
     
    
    596 596
           if ( FT_STREAM_SEEK( cid->data_offset + offsets[0] ) ||
    


  • reply via email to

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