Skip to content

Test ASAN SSO string copies; improve basic_string::_Construct preconditions - #3039

Merged
Stephan T. Lavavej (StephanTLavavej) merged 2 commits into
microsoft:mainfrom
CaseyCarter:ASAN-SSO-fix
Aug 22, 2022
Merged

Stephan T. Lavavej (StephanTLavavej) merged 2 commits into
microsoft:mainfrom
CaseyCarter:ASAN-SSO-fix

Conversation

@CaseyCarter

@CaseyCarter Casey Carter (CaseyCarter) commented Aug 18, 2022 •

Copy link
Copy Markdown
Contributor

To avoid regressing DevCom-10116361 / VSO-1590908

Reviewer note: I did temporarily enable ASAN annotation and verify that all tests (including the new regression test) pass.

@CaseyCarter Casey Carter (CaseyCarter) added the enhancement Something can be improved label Aug 18, 2022
To avoid regressing DevCom-10116361 / VSO-1590908

Also: Document `_Construct` precondition that elements must be value-initialized, use in all branches.
@CaseyCarter
Casey Carter (CaseyCarter) force-pushed the ASAN-SSO-fix branch 2 times, most recently from 6c731bc to 7bef7d3 Compare August 18, 2022 20:27
@CaseyCarter
Casey Carter (CaseyCarter) marked this pull request as ready for review August 18, 2022 20:27
@CaseyCarter
Casey Carter (CaseyCarter) requested a review from a team as a code owner August 18, 2022 20:27
@StephanTLavavej

Copy link
Copy Markdown
Member

Looks good, I pushed #include . (I'm going to be so sad when import std; makes this game unplayable 😹)

@CaseyCarter

Copy link
Copy Markdown
Contributor Author

Looks good, I pushed #include . (I'm going to be so sad when import std; makes this game unplayable 😹)

GRAWR. I can't believe I double-checked and missed . I suppose I deserve this for copying the code but not the includes from my separate repro.

@StephanTLavavej

Copy link
Copy Markdown
Member

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

@StephanTLavavej
Stephan T. Lavavej (StephanTLavavej) merged commit ad18417 into microsoft:main Aug 22, 2022
@StephanTLavavej

Copy link
Copy Markdown
Member

Thanks for enhancing this test coverage and improving bug resistance here! ✅ 🐞 😻

@CaseyCarter
Casey Carter (CaseyCarter) deleted the ASAN-SSO-fix branch August 22, 2022 21:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Something can be improved

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants