Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Invalid iterator increment/decrement in the last iteration of adaptive_sort_combine_blocks #26
In a left/right merge, combined_first is always increased/decreased the regular size:
combined_first += l_reg_combined
combined_first -= l_reg_combined
This is invalid when the last iteration is not regular. The problem shows up when using stable_vector::iterators, which crash when incremented out of bounds.