Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix invalid insertion hint to underlying set container #8

Merged
merged 1 commit into from
Jun 3, 2018

Conversation

davelgraphcore
Copy link
Contributor

The code in the add_segment function tries to get the prior of an
iterator that may be the first iterator of the underlying set container.
This is then used as an insertion hint which causes a segfault in some
standard container libraries.

The fix is to use cyclic_prior instead.

This is a fix for ticket #12872.

The code in the add_segment function tries to get the prior of an
iterator that may be the first iterator of the underlying set container.
This is then used as an insertion hint which causes a segfault in some
standard container libraries.

The fix is to use cyclic_prior instead.

This is a fix for ticket #12872.
@davelgraphcore
Copy link
Contributor Author

I'm not too familiar with the code-base so this may not be the correct fix but it does fix the issue for me. I wasn't sure where to add a test case...

@jofaber jofaber merged commit 09d25cd into boostorg:develop Jun 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants