[graph] Try fixing infinite loop found by CIFuzz under malloc fail

This commit is contained in:
Behdad Esfahbod committed 2023-07-27 13:29:56 -06:00
1 parent db3314c1f8
commit bb1f53c254
1 file changed
+2 -2
+2 -2
View File
@@ -211,8 +211,8 @@ struct graph_t
single_parent = (unsigned) -1;
}
incoming_edges_++;
parents.set (parent_index, parents[parent_index] + 1);
if (parents.set (parent_index, parents[parent_index] + 1))
incoming_edges_++;
}
void remove_parent (unsigned parent_index)