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

ASAN found _two_ bugs in _Copy_vbool! #4045

Merged
merged 3 commits into from
Sep 22, 2023

Conversation

CaseyCarter
Copy link
Contributor

@CaseyCarter CaseyCarter commented Sep 22, 2023

  • _IsSingleBlockDest wasn't accounting for the fact that _DestEnd is past-the-end
  • we sometimes don't realize we're done and read past the end of the input

Test coverage is forthcoming in my ASAN work. (I've run 1e7 iterations of the randomized test locally, FWIW.)

* `_IsSingleBlockDest` wasn't accounting for the fact that `_DestEnd` is past-the-end
* we sometimes don't realize we're done and read past the end of the input
@CaseyCarter CaseyCarter added the bug Something isn't working label Sep 22, 2023
@CaseyCarter CaseyCarter requested a review from a team as a code owner September 22, 2023 01:32
CaseyCarter added a commit to CaseyCarter/STL that referenced this pull request Sep 22, 2023
stl/inc/vector Outdated Show resolved Hide resolved
@StephanTLavavej StephanTLavavej self-assigned this Sep 22, 2023
@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 48eedd3 into microsoft:main Sep 22, 2023
@StephanTLavavej
Copy link
Member

Thanks for finding and fixing these bugs so fast! 🕵️ 🔍 🛠️

@CaseyCarter CaseyCarter deleted the more_like_vector_fool branch September 22, 2023 23:05
stl/inc/vector Show resolved Hide resolved
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.

3 participants