[ENOMEM] unchecked resize in CFF2.

pull/2609/head
Garret Rieger 4 years ago committed by Ebrahim Byagowi
parent 32f052b033
commit 7f358a55f4
  1. 3
      src/hb-ot-cff2-table.hh
  2. BIN
      test/fuzzing/fonts/clusterfuzz-testcase-minimized-hb-subset-fuzzer-5181909018345472

@ -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++)

Loading…
Cancel
Save