[cff] Another no-memset in INDEX

pull/3911/head
Behdad Esfahbod 2 years ago
parent 5fd2f255fc
commit b3ad4d72cc
  1. 2
      src/hb-ot-cff-common.hh

@ -171,7 +171,7 @@ struct CFFIndex
if (!this->count) return_trace (true);
if (unlikely (!c->extend (this->offSize))) return_trace (false);
this->offSize = off_size;
if (unlikely (!c->allocate_size<HBUINT8> (off_size * (this->count + 1))))
if (unlikely (!c->allocate_size<HBUINT8> (off_size * (this->count + 1), false)))
return_trace (false);
/* serialize indices */

Loading…
Cancel
Save