https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66514
Bug ID: 66514
Summary: UBSAN: Add -fsanitize=lifetime
Product: gcc
Version: 5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: sanitizer
Assignee: unassigned at gcc dot gnu.org
Reporter: marxin at gcc dot gnu.org
CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org,
jakub at gcc dot gnu.org, kcc at gcc dot gnu.org
Target Milestone: ---
As discussed in PR66487, C++ started to emit a clobber class contruction and
destruction. It would be really nice to have such support in UBSAN, where we
can catch all places which for instance access a member of a class after dtor
is called.
Ideas how to implement that?
Thanks,
Martin