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

2016-09-19 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66514 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement

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

2015-06-16 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66514 --- Comment #5 from Jakub Jelinek jakub at gcc dot gnu.org --- The thing is that if you poison at the end of destructor, you need to unpoison it again somewhere, except for file scope variables that when they are destructed supposedly can't be

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

2015-06-16 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66514 --- Comment #6 from Martin Liška marxin at gcc dot gnu.org --- (In reply to Jakub Jelinek from comment #5) The thing is that if you poison at the end of destructor, you need to unpoison it again somewhere, except for file scope variables that

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

2015-06-15 Thread y.gribov at samsung dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66514 Yury Gribov y.gribov at samsung dot com changed: What|Removed |Added CC||y.gribov at

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

2015-06-15 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66514 --- Comment #3 from Martin Liška marxin at gcc dot gnu.org --- (In reply to Jakub Jelinek from comment #1) There is some minimal support in -fsanitize=vptr, but that catches only destructed objects with virtual methods (by disabling the

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

2015-06-15 Thread jason at gcc dot gnu.org
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

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

2015-06-12 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66514 --- Comment #1 from Jakub Jelinek jakub at gcc dot gnu.org --- There is some minimal support in -fsanitize=vptr, but that catches only destructed objects with virtual methods (by disabling the clobbers and clearing the vptr). Other than that,