freetype-commit
[Top][All Lists]
Advanced

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

[Git][freetype/freetype][1077-out-of-range-access-in-the-signed-distance


From: Anuj Verma (@anujv)
Subject: [Git][freetype/freetype][1077-out-of-range-access-in-the-signed-distance-field-implementation] [sdf] Fix out-of-range-access.
Date: Mon, 02 Aug 2021 04:19:32 +0000

Anuj Verma pushed to branch 1077-out-of-range-access-in-the-signed-distance-field-implementation 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]