[Bug sanitizer/66514] UBSAN: Add -fsanitize=lifetime

jason at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Jun 15 18:08:00 GMT 2015


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66514

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jason at gcc dot gnu.org

--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> ---
(In reply to Martin Liška from comment #3)
> Ok, after reading your caution and test-cases mentioned in the ASAN tracker,
> I think emitting a poison memory call in a dtor for instances that does not
> use placement new can be beneficial. However, I can't evaluate if getting
> such kind of information in doable in GCC?

We could certainly emit the poison call where we currently have the clobber.


More information about the Gcc-bugs mailing list