[subset/cff1] More error handling

This commit is contained in:
Behdad Esfahbod 2023-06-29 16:14:45 -06:00
parent cc44b3bce0
commit 73376b24cf

View file

@ -740,8 +740,9 @@ struct cff1_subset_plan
;
}
return ((subset_charstrings.length == plan->num_output_glyphs ())
&& (fontdicts_mod.length == subset_fdcount));
return !plan->in_error () &&
(subset_charstrings.length == plan->num_output_glyphs ()) &&
(fontdicts_mod.length == subset_fdcount);
}
cff1_top_dict_values_mod_t topdict_mod;