-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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 memcmp(x, y, -1)
from ranges::lexicographical_compare
#3989
Conversation
ASan considers calls to `memcmp` with size `-1` to indicate bugs. These two test cases are the exception that proves the rule. Drive by: Pull non-dependent test cases out of the `instantiator::call` template magic. Fixes VSO-1854238 / AB#1854238
I think we should maybe reconsider calling Footnotes |
…aphical_compare`
Yeah, it's hard to argue in support of |
memcmp(x, y, -1)
with ASanmemcmp(x, y, -1)
~~with ASan~~
memcmp(x, y, -1)
~~with ASan~~memcmp(x, y, -1)
from ranges::lexicographical_compare
Okay, fixed. Thanks for reminding me how icky this was in the first place. |
I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed. |
... even with two potentially-infinite ranges.
Drive by: Pull non-dependent test cases out of the
instantiator::call
template magic intests/P0896R4_ranges_alg_lexicographical_compare
.Fixes VSO-1854238 / AB#1854238