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 IndexMap entry API, fix CI. #402

Merged
merged 4 commits into from
Oct 31, 2023
Merged

Fix IndexMap entry API, fix CI. #402

merged 4 commits into from
Oct 31, 2023

Conversation

Dirbaio
Copy link
Member

@Dirbaio Dirbaio commented Oct 31, 2023

Sorry for mixing unrelated stuff, I merged an unrebased PR which made CI tests fail after merging, and didn't notice because the merge queue wasn't configured yet. After merging this I'll configure it, now that this simplifies CI a bit so that there's lesa less ridiculous amount of jobs.

#361 rebased

closes #360
closes #361

When inserting using the entry API and the robin-hood case is hit,
we currently return using the incorrect index, which in turn
returns a reference to the wrong entry in the map, causing
undefined behaviour in the API.
@Dirbaio Dirbaio changed the title Fix indexmap entry api Fix IndexMap entry API, fix CI. Oct 31, 2023
@Dirbaio Dirbaio added this pull request to the merge queue Oct 31, 2023
Merged via the queue into main with commit f290006 Oct 31, 2023
21 checks passed
@Dirbaio Dirbaio deleted the fix-indexmap branch October 31, 2023 15:36
@Dirbaio
Copy link
Member Author

Dirbaio commented Oct 31, 2023

CI configured to require all the tests. Hopefully it should be OK now.

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.

IndexMap Soundness: Entry API can return references to incorrect entries
3 participants