freetype-commit
[Top][All Lists]
Advanced

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

[Git][freetype/freetype][master] [bdf] Fix use of uninitialized value.


From: Werner Lemberg (@wl)
Subject: [Git][freetype/freetype][master] [bdf] Fix use of uninitialized value.
Date: Sat, 11 Dec 2021 07:02:59 +0000

Werner Lemberg pushed to branch master at FreeType / FreeType

Commits:

1 changed file:

Changes:

  • src/bdf/bdflib.c
    ... ... @@ -613,7 +613,7 @@
    613 613
               if ( FT_QREALLOC( buf, buf_size, new_size ) )
    
    614 614
                 goto Exit;
    
    615 615
     
    
    616
    -          cursor   = (ptrdiff_t)buf_size;
    
    616
    +          cursor   = avail;
    
    617 617
               buf_size = new_size;
    
    618 618
             }
    
    619 619
             else
    
    ... ... @@ -623,7 +623,6 @@
    623 623
               FT_MEM_MOVE( buf, buf + start, bytes );
    
    624 624
     
    
    625 625
               cursor = bytes;
    
    626
    -          avail -= bytes;
    
    627 626
               start  = 0;
    
    628 627
             }
    
    629 628
             refill = 1;
    


  • reply via email to

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