[ENOMEM] don't perform set process operations if the other set is in an error state.

Running a process while the other set is in an error state can potentially corrupt this sets map map (for example by overwritting all of the major values with 0).
pull/2684/head
Garret Rieger 4 years ago
parent 584d3a43b2
commit f3929abafe
  1. 1
      src/hb-set.hh
  2. BIN
      test/fuzzing/fonts/clusterfuzz-testcase-minimized-hb-subset-fuzzer-5345734743031808

@ -544,6 +544,7 @@ struct hb_set_t
void process (const Op& op, const hb_set_t *other)
{
if (unlikely (!successful)) return;
if (unlikely (!other->successful)) return;
dirty ();

Loading…
Cancel
Save