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

Orphan before reallocation in vector<:ghost:> #2441

Merged
merged 5 commits into from
Mar 17, 2022

Conversation

CaseyCarter
Copy link
Contributor

@CaseyCarter CaseyCarter commented Dec 21, 2021

Fixes #2440

Drive-by: remove extraneous public in deque.

@CaseyCarter CaseyCarter added the bug Something isn't working label Dec 21, 2021
@CaseyCarter CaseyCarter requested a review from a team as a code owner December 21, 2021 03:37
@@ -722,7 +722,6 @@ public:
_Take_contents(_Right);
}

public:
Copy link
Contributor Author

@CaseyCarter CaseyCarter Dec 21, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For reviewers: I'm removing this since it's redundant with public on line 703. Yes, this is 100% drive-by - it could be easily split into a different PR.

Integrate new test case into pre-existing test cases.

Drive-by: inline `_BConstruct` into its only callsite
@barcharcraz barcharcraz removed their assignment Mar 15, 2022
@StephanTLavavej
Copy link
Member

I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed.

@StephanTLavavej StephanTLavavej self-assigned this Mar 15, 2022
@StephanTLavavej StephanTLavavej merged commit 18b3c67 into microsoft:main Mar 17, 2022
@StephanTLavavej
Copy link
Member

Thanks for fixing this haunted data structure! 👻 🦇 😹

@CaseyCarter CaseyCarter deleted the vector_boo branch March 17, 2022 20:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

<vector>: orphan after reallocation in _Insert_x has UB
4 participants