mirror of
https://github.com/boostorg/heap.git
synced 2026-07-21 13:23:40 +00:00
binomial_heap: fix stack-buffer-overflow in merge_and_clear_nodes when this_iterator reaches end()
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user