[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).
This commit is contained in:
Garret Rieger 2020-09-15 13:06:36 -07:00
parent 584d3a43b2
commit f3929abafe
2 changed files with 1 additions and 0 deletions

View File

@ -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 ();