https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116243
Bug ID: 116243
Summary: Add ASAN annotations to std::string and friends
Product: gcc
Version: 15.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: sjames at gcc dot gnu.org
Target Milestone: ---
ASAN supports marking memory as undefined ("poisoned"). We should include some
annotations to help it out for std::string.
(I don't know if we can or should do Valgrind annotations here, but it's worth
considering. It has some more nuance though, see the discussions on gcc-patches
wrt runtime detection in libgcc and the stability of the protocol if we want to
elide the vg headers.)
See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116235#c3.