[serialize] Assert stack

This commit is contained in:
Behdad Esfahbod 2019-04-01 16:45:40 -07:00
parent 72e9b2c16c
commit abe33c6149
1 changed files with 1 additions and 0 deletions

View File

@ -227,6 +227,7 @@ struct hb_serialize_context_t
if (unlikely (!objidx))
return;
assert (current.length);
unsigned i = current.length - 1;
if (!base)
base = current[i].head;