[libcxx-commits] [libcxx] [libcxx] Poison memory in variant destroy (PR #101048)
Vitaly Buka via libcxx-commits
libcxx-commits at lists.llvm.org
Sun Nov 24 02:53:48 PST 2024
vitalybuka wrote:
> Gentle ping @vitalybuka. IMO the desired outcome for libc++ is pretty clear, it would be nice if MSAN's behavior could be aligned with it.
>
> MSAN bug
I guess is intentional, but msan can be improved. As-is __sanitizer_dtor_callback is a function call, so it can be too expensive. Maybe this can be done reasonably efficiently if we inline the call.
BTW. libc++ uses `__sanitizer_annotate_contiguous_container`, and this can probably have a custom Asan support.
https://github.com/llvm/llvm-project/pull/101048
More information about the libcxx-commits
mailing list