[libcxx-commits] [libcxx] [libc++][hardening] Categorize assertions that produce incorrect results (PR #77183)

Hristo Hristov via libcxx-commits libcxx-commits at lists.llvm.org
Sat Jan 6 02:05:17 PST 2024


================
@@ -283,6 +283,14 @@
 // - `_LIBCPP_ASSERT_COMPATIBLE_ALLOCATOR` -- checks any operations that exchange nodes between containers to make sure
 //   the containers have compatible allocators.
 //
+// - `_LIBCPP_ASSERT_ARGUMENT_WITHIN_DOMAIN` -- checks that the given argument is within the domain of valid arguments
----------------
Zingam wrote:

Can we have a guide about the different categories? Would that make sense? -> https://libcxx.llvm.org/Hardening.html

https://github.com/llvm/llvm-project/pull/77183


More information about the libcxx-commits mailing list