Alexei Podtelezhnikov pushed to branch master at FreeType / FreeType
Commits:
-
c213c8a9
by Alexei Podtelezhnikov at 2021-04-27T08:54:19-04:00
2 changed files:
Changes:
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.
|
... | ... | @@ -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;
|