mirror of
https://gitlab.freedesktop.org/freetype/freetype.git
synced 2026-04-08 07:10:39 +02:00
* src/cid/cidgload.c (cid_load_glyph): Restore the glyph_length check.
This commit is contained in:
parent
2ec6feaf39
commit
c213c8a9bb
2 changed files with 6 additions and 1 deletions
|
|
@ -1,3 +1,7 @@
|
|||
2021-04-27 Alexei Podtelezhnikov <apodtele@gmail.com>
|
||||
|
||||
* src/cid/cidgload.c (cid_load_glyph): Restore the glyph_length check.
|
||||
|
||||
2021-04-27 Werner Lemberg <wl@gnu.org>
|
||||
|
||||
* src/psmodule.c (ps_unicodes_init): Ignore empty glyph names.
|
||||
|
|
|
|||
|
|
@ -131,7 +131,8 @@
|
|||
|
||||
glyph_length = off2 - off1;
|
||||
|
||||
if ( FT_QALLOC( charstring, glyph_length ) ||
|
||||
if ( glyph_length == 0 ||
|
||||
FT_QALLOC( charstring, glyph_length ) ||
|
||||
FT_STREAM_READ_AT( cid->data_offset + off1,
|
||||
charstring, glyph_length ) )
|
||||
goto Exit;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue