freetype-commit
[Top][All Lists]
Advanced

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

[Git][freetype/freetype][master] [pcf] Zero out the allocated properties


From: Alexei Podtelezhnikov (@apodtele)
Subject: [Git][freetype/freetype][master] [pcf] Zero out the allocated properties.
Date: Tue, 19 Oct 2021 00:42:08 +0000

Alexei Podtelezhnikov pushed to branch master at FreeType / FreeType

Commits:

1 changed file:

Changes:

  • src/pcf/pcfread.c
    ... ... @@ -613,7 +613,8 @@ THE SOFTWARE.
    613 613
     
    
    614 614
         strings[string_size] = '\0';
    
    615 615
     
    
    616
    -    if ( FT_QNEW_ARRAY( properties, nprops ) )
    
    616
    +    /* zero out in case of failure */
    
    617
    +    if ( FT_NEW_ARRAY( properties, nprops ) )
    
    617 618
           goto Bail;
    
    618 619
     
    
    619 620
         face->properties = properties;
    


  • reply via email to

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