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

pull/4346/head
Behdad Esfahbod 1 year ago
parent db3314c1f8
commit bb1f53c254
  1. 4
      src/graph/graph.hh

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

Loading…
Cancel
Save