freetype-commit
[Top][All Lists]
Advanced

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

[Git][freetype/freetype][master] [bzip2] Avoid use of uninitialized memo


From: Werner Lemberg (@wl)
Subject: [Git][freetype/freetype][master] [bzip2] Avoid use of uninitialized memory.
Date: Sun, 09 Jan 2022 06:53:03 +0000

Werner Lemberg pushed to branch master at FreeType / FreeType

Commits:

1 changed file:

Changes:

  • src/bzip2/ftbzip2.c
    ... ... @@ -481,7 +481,9 @@
    481 481
         FT_ZERO( stream );
    
    482 482
         stream->memory = memory;
    
    483 483
     
    
    484
    -    if ( !FT_QNEW( zip ) )
    
    484
    +    /* Don't use `FT_QNEW` here to avoid problems with uninitialized */
    
    485
    +    /* memory later on if the font is malformed.                     */
    
    486
    +    if ( !FT_NEW( zip ) )
    
    485 487
         {
    
    486 488
           error = ft_bzip2_file_init( zip, stream, source );
    
    487 489
           if ( error )
    


  • reply via email to

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