freetype-commit
[Top][All Lists]
Advanced

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

[Git][freetype/freetype][master] * src/cid/cidgload.c (cid_load_glyph):


From: Alexei Podtelezhnikov (@apodtele)
Subject: [Git][freetype/freetype][master] * src/cid/cidgload.c (cid_load_glyph): Restore the glyph_length check.
Date: Tue, 27 Apr 2021 12:55:13 +0000

Alexei Podtelezhnikov pushed to branch master at FreeType / FreeType

Commits:

2 changed files:

Changes:

  • ChangeLog
    1
    +2021-04-27  Alexei Podtelezhnikov  <apodtele@gmail.com>
    
    2
    +
    
    3
    +	* src/cid/cidgload.c (cid_load_glyph): Restore the glyph_length check.
    
    4
    +
    
    1 5
     2021-04-27  Werner Lemberg  <wl@gnu.org>
    
    2 6
     
    
    3 7
     	* src/psmodule.c (ps_unicodes_init): Ignore empty glyph names.
    

  • src/cid/cidgload.c
    ... ... @@ -131,7 +131,8 @@
    131 131
     
    
    132 132
           glyph_length = off2 - off1;
    
    133 133
     
    
    134
    -      if ( FT_QALLOC( charstring, glyph_length )         ||
    
    134
    +      if ( glyph_length == 0                             ||
    
    135
    +           FT_QALLOC( charstring, glyph_length )         ||
    
    135 136
                FT_STREAM_READ_AT( cid->data_offset + off1,
    
    136 137
                                   charstring, glyph_length ) )
    
    137 138
             goto Exit;
    


  • reply via email to

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