Don't memcmp(x, y, -1) from ranges::lexicographical_compare#3989
Don't memcmp(x, y, -1) from ranges::lexicographical_compare#3989CaseyCarter merged 2 commits intomicrosoft:mainfrom
memcmp(x, y, -1) from ranges::lexicographical_compare#3989Conversation
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::calltemplate magic intests/P0896R4_ranges_alg_lexicographical_compare.Fixes VSO-1854238 / AB#1854238