binomial_heap: fix stack-buffer-overflow in merge_and_clear_nodes when this_iterator reaches end()

This commit is contained in:
Tim Blechmann
2026-05-27 21:49:01 +08:00
parent 9f9a96ae63
commit a43cc4b7e7
+2
View File
@@ -686,6 +686,8 @@ try_again:
} else {
this_iterator = trees.erase( this_iterator );
carry_node = merge_trees( this_node, carry_node );
if ( this_iterator == trees.end() )
break;
}
goto try_again;
} else {