freetype-commit
[Top][All Lists]
Advanced

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

[Git][freetype/freetype][master] [sdf] Fix out-of-range-access.


From: Werner Lemberg (@wl)
Subject: [Git][freetype/freetype][master] [sdf] Fix out-of-range-access.
Date: Mon, 02 Aug 2021 04:51:56 +0000

Werner Lemberg pushed to branch master at FreeType / FreeType

Commits:

1 changed file:

Changes:

  • src/sdf/ftbsdf.c
    ... ... @@ -928,7 +928,7 @@
    928 928
     
    
    929 929
           /* Forward pass of rows (left -> right).  Leave the first  */
    
    930 930
           /* column, which gets covered in the backward pass.        */
    
    931
    -      for ( i = 1; i < w; i++ )
    
    931
    +      for ( i = 1; i < w - 1; i++ )
    
    932 932
           {
    
    933 933
             index   = j * w + i;
    
    934 934
             current = dm + index;
    
    ... ... @@ -997,7 +997,7 @@
    997 997
     
    
    998 998
           /* Forward pass of rows (left -> right).  Leave the first */
    
    999 999
           /* column, which gets covered in the backward pass.       */
    
    1000
    -      for ( i = 1; i < w; i++ )
    
    1000
    +      for ( i = 1; i < w - 1; i++ )
    
    1001 1001
           {
    
    1002 1002
             index   = j * w + i;
    
    1003 1003
             current = dm + index;
    


  • reply via email to

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