[subset-cff] Handle an error condition

This commit is contained in:
Behdad Esfahbod committed 2023-06-22 19:45:29 -06:00
1 parent cb5f4d0c68
commit e1753782c1
1 file changed
+1
+1
View File
@@ -480,6 +480,7 @@ struct cff_subset_accelerator_t
const hb_vector_t<parsed_cs_str_vec_t>& parsed_local_subrs) {
cff_subset_accelerator_t* accel =
(cff_subset_accelerator_t*) hb_malloc (sizeof(cff_subset_accelerator_t));
if (unlikely (!accel)) return nullptr;
new (accel) cff_subset_accelerator_t (original_blob,
parsed_charstrings,
parsed_global_subrs,