[libcxx-commits] [libcxx] [libc++] Add an ABI setting to harden unique_ptr<T[]>::operator[] (PR #91798)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Mon Aug 26 09:54:11 PDT 2024


ldionne wrote:

@vitalybuka I just stumbled upon `-fno-sanitize-address-poison-custom-array-cookie` and learned that ASAN sometimes poisons array cookies when a custom `operator new` is in use. I'm not certain I understand why poisoning the array cookie is legal even when we have a custom `operator new[]`, but it seems like poisoning array cookies would interact badly with this patch. Do you have thoughts?

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


More information about the libcxx-commits mailing list