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 some subtle UB found by MSan. #4093

Merged
merged 1 commit into from
Jun 29, 2024
Merged

Conversation

chandlerc
Copy link
Contributor

Technically, any small size buffer's lifetime has ended by the time we get to the base's destructor. This means its no longer valid to access table contents if stored there from the base destructor. We need to handle destruction in the table class instead.

This ends up being a trivial change because the logic is already factored out, we just need to call it from a different point.

Technically, any small size buffer's lifetime has ended by the time we
get to the base's destructor. This means its no longer valid to access
table contents if stored there from the base destructor. We need to
handle destruction in the table class instead.

This ends up being a trivial change because the logic is already
factored out, we just need to call it from a different point.
@github-actions github-actions bot requested a review from zygoloid June 29, 2024 04:29
@zygoloid zygoloid added this pull request to the merge queue Jun 29, 2024
Merged via the queue into carbon-language:trunk with commit 6310293 Jun 29, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants