freetype-commit
[Top][All Lists]
Advanced

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

[Git][freetype/freetype][master] [ttgxvar] Fix crash in COLRv1.


From: Werner Lemberg (@wl)
Subject: [Git][freetype/freetype][master] [ttgxvar] Fix crash in COLRv1.
Date: Fri, 27 Jan 2023 05:55:25 +0000

Werner Lemberg pushed to branch master at FreeType / FreeType

Commits:

  • bea675cd
    by Behdad Esfahbod at 2023-01-27T06:53:46+01:00
    [ttgxvar] Fix crash in COLRv1.
    
    This is a stopgap until issue #1202 is properly fixed.
    
    * src/truetype/ttxgvar.c (tt_var_get_item_delta): Check `normalizedcoords`.
    

1 changed file:

Changes:

  • src/truetype/ttgxvar.c
    ... ... @@ -1009,6 +1009,9 @@
    1009 1009
         FT_ItemVarDelta   returnValue;
    
    1010 1010
     
    
    1011 1011
     
    
    1012
    +    if ( !face->blend->normalizedcoords )
    
    1013
    +      return 0;
    
    1014
    +
    
    1012 1015
         /* OpenType 1.8.4+: No variation data for this item
    
    1013 1016
          *  as indices have special value 0xFFFF. */
    
    1014 1017
         if ( outerIndex == 0xFFFF && innerIndex == 0xFFFF )
    


  • reply via email to

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