mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-21 06:51:01 +01:00
[graph] Try fixing infinite loop found by CIFuzz under malloc fail
This commit is contained in:
1 parent
db3314c1f8
commit
bb1f53c254
1 file changed
+2
-2
+2
-2
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user