mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-24 08:21:32 +01:00
[subset-cff] Handle an error condition
This commit is contained in:
1 parent
cb5f4d0c68
commit
e1753782c1
1 file changed
+1
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user