<xmemory>
: Investigate ASan annotation for overaligned "big" allocations
#5007
Labels
<xmemory>
: Investigate ASan annotation for overaligned "big" allocations
#5007
The implementation of
std::allocator::allocate
boosts the alignment of large allocations to help vectorization be more effective:STL/stl/inc/xmemory
Lines 208 to 228 in faccf00
For allocations whose nominal alignment is at most
__STDCPP_DEFAULT_NEW_ALIGNMENT__
, we askoperator new
for extra memory in order to perform the alignment manually:STL/stl/inc/xmemory
Lines 152 to 169 in faccf00
It would be nice to enhance our ASan experience by poisoning the non-user space in these allocations to detect under/overflow. Doing so will probably require adding more symbols from
sanitizer/asan_interface.h
orsanitizer/common_interface.h
to__msvc_sanitizer_annotate_container.hpp
, as well as a new opt-out macro anddetect_mismatch
pragma.The text was updated successfully, but these errors were encountered: