[ENOMEM] check resize() return.
Fixes https://oss-fuzz.com/testcase-detail/5641892164009984.
This commit is contained in:
parent
8b63de1109
commit
d307c24abf
|
@ -1087,7 +1087,8 @@ struct cff1
|
|||
if (num_glyphs != sc.get_num_glyphs ())
|
||||
{ fini (); return; }
|
||||
|
||||
privateDicts.resize (fdCount);
|
||||
if (unlikely (!privateDicts.resize (fdCount)))
|
||||
{ fini (); return; }
|
||||
for (unsigned int i = 0; i < fdCount; i++)
|
||||
privateDicts[i].init ();
|
||||
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue