[libcxx-commits] [PATCH] D155873: [libc++][hardening] Categorize more assertions.
Louis Dionne via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Jul 21 10:44:58 PDT 2023
ldionne accepted this revision.
ldionne added a comment.
This revision is now accepted and ready to land.
LGTM with tests!
================
Comment at: libcxx/include/__string/char_traits.h:241
+ _LIBCPP_ASSERT_NON_OVERLAPPING_RANGES(
+ __s2 < __s1 || __s2 >= __s1 + __n, "char_traits::copy overlapped range");
std::copy_n(__s2, __n, __s1);
----------------
Do we want to change the message to `overlapping ranges`? To consider as we add tests.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D155873/new/
https://reviews.llvm.org/D155873
More information about the libcxx-commits
mailing list