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

libcxx stol.pass.cpp is now passing for ASAN #4492

Merged

Conversation

StephanTLavavej
Copy link
Member

Followup to the VS 2022 17.10 Preview 2 toolset update #4475.

This toolset fixed VSO-1875597 "[ASAN][STL] Interception breaks strtol: TEST 'libc++ std/strings/string.conversions/stol.pass.cpp:1' FAILED". @CaseyCarter explained the bug:

The implementation of std::stol expects ::strtol to set errno to ERANGE when given an unrepresentable input, which it does normally, but not with ASAN

We can now un-skip the affected test.

(We missed a few opportunities to discover this during the toolset update; I should have run ASAN, etc. I'll try to improve our development practices in the future.)

@StephanTLavavej StephanTLavavej added test Related to test code ASan Address Sanitizer labels Mar 20, 2024
@StephanTLavavej StephanTLavavej requested a review from a team as a code owner March 20, 2024 00:25
@StephanTLavavej StephanTLavavej self-assigned this Mar 21, 2024
@StephanTLavavej
Copy link
Member Author

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

@StephanTLavavej StephanTLavavej merged commit 47825be into microsoft:main Mar 21, 2024
35 checks passed
@StephanTLavavej StephanTLavavej deleted the short-takeoff-and-landing branch March 21, 2024 21:54
@AraHaan
Copy link

AraHaan commented Mar 22, 2024

This looks good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ASan Address Sanitizer test Related to test code
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants