[libcxx-commits] [libcxx] [libc++] Add missing assertion in std::span constructor (PR #118396)

via libcxx-commits libcxx-commits at lists.llvm.org
Tue Dec 3 21:17:43 PST 2024


mxms0 wrote:

Just a drive by comment, but can this assert be some form of _LIBCPP_ASSERT_NON_NULL? 

I'm not sure if passing a null-iterator here with a length has a lot of security impact (besides the general idea that it's UB and the compiler can do anything). It's possible I'm misunderstanding :)

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


More information about the libcxx-commits mailing list