diff --git a/src/hb-cff-interp-common.hh b/src/hb-cff-interp-common.hh index 49805a89c..824b8e28c 100644 --- a/src/hb-cff-interp-common.hh +++ b/src/hb-cff-interp-common.hh @@ -522,7 +522,7 @@ struct parsed_values_t void alloc (unsigned n) { - values.alloc (n); + values.alloc (n, true); } void add_op (op_code_t op, const byte_str_ref_t& str_ref = byte_str_ref_t ()) diff --git a/src/hb-subset-cff-common.hh b/src/hb-subset-cff-common.hh index 8bbc01765..5800f92a1 100644 --- a/src/hb-subset-cff-common.hh +++ b/src/hb-subset-cff-common.hh @@ -644,7 +644,7 @@ struct subr_subsetter_t ENV env (str, acc, fd); cs_interpreter_t interp (env); - parsed_charstrings[i].alloc (str.length / 2); + parsed_charstrings[i].alloc (str.length); subr_subset_param_t param (&parsed_charstrings[i], &parsed_global_subrs_storage, &parsed_local_subrs_storage[fd],