[ENOMEM] unchecked resize in CFF2.
This commit is contained in:
parent
32f052b033
commit
7f358a55f4
|
@ -441,7 +441,8 @@ struct cff2
|
|||
{ fini (); return; }
|
||||
|
||||
fdCount = fdArray->count;
|
||||
privateDicts.resize (fdCount);
|
||||
if (!privateDicts.resize (fdCount))
|
||||
{ fini (); return; }
|
||||
|
||||
/* parse font dicts and gather private dicts */
|
||||
for (unsigned int i = 0; i < fdCount; i++)
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue