commit | 73376b24cfe7cfe27b7b4b9abbe46ff441189b2a | [log] [tgz] |
---|---|---|
author | Behdad Esfahbod <behdad@behdad.org> | Thu Jun 29 16:14:45 2023 -0600 |
committer | Behdad Esfahbod <behdad@behdad.org> | Thu Jun 29 16:14:45 2023 -0600 |
tree | 39a9312d8a8c8b5f5a4d5fd27b38dc9f47af7e50 | |
parent | cc44b3bce0a7be5536df7df910b5bc73a5e4a741 [diff] |
[subset/cff1] More error handling
diff --git a/src/hb-subset-cff1.cc b/src/hb-subset-cff1.cc index fcd7ba4..e80d18d 100644 --- a/src/hb-subset-cff1.cc +++ b/src/hb-subset-cff1.cc
@@ -740,8 +740,9 @@ ; } - 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;