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

Don't rely on SSO zeroing in basic_string::_Construct #3235

Merged
merged 1 commit into from
Nov 19, 2022

Conversation

CaseyCarter
Copy link
Member

... or we will have horrible failures when linking with object files from 17.3. _Construct must null-terminate the string itself on all control paths. I've added a comment to the _String_val::_Bxty constructor directing us not to rely on the semantic changes introduced in 17.4 to avoid regressing.

... or we will have horrible failures when linking with object files from 17.3. `_Construct` must null-terminate the string itself on all control paths. I've added a comment to the `_String_val::_Bxty` constructor directing us not to rely on the semantic changes introduced in 17.4 to avoid regressing.
@CaseyCarter CaseyCarter added bug Something isn't working high priority Important! labels Nov 16, 2022
@CaseyCarter CaseyCarter requested a review from a team as a code owner November 16, 2022 18:27
@StephanTLavavej StephanTLavavej self-assigned this Nov 16, 2022
@StephanTLavavej
Copy link
Member

Thanks, looks good to me. This also makes the small case use consistent patterns with the large case below.

@StephanTLavavej StephanTLavavej removed their assignment Nov 17, 2022
@StephanTLavavej StephanTLavavej self-assigned this Nov 18, 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 merged commit 299abb0 into microsoft:main Nov 19, 2022
@StephanTLavavej
Copy link
Member

Thanks for investigating and fixing this ABI break! 🙀 🕵️ 😻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working high priority Important!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants