[vector] Always 0-fill new items

pull/1062/head
Behdad Esfahbod 7 years ago
parent a7e1b4a3b2
commit c4d0d11c55
  1. 3
      src/hb-private.hh

@ -716,6 +716,9 @@ struct hb_vector_t
if (!alloc (size)) if (!alloc (size))
return false; return false;
if (size > len)
memset (arrayZ + len, 0, (size - len) * sizeof (*arrayZ));
len = size; len = size;
return true; return true;
} }

Loading…
Cancel
Save