[Bug sanitizer/60569] Segfault with -flto and -fsanitize=undefined
mpolacek at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Mar 19 12:25:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60569
--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Wed Mar 19 12:25:04 2014
New Revision: 208681
URL: http://gcc.gnu.org/viewcvs?rev=208681&root=gcc&view=rev
Log:
PR sanitizer/60569
* ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
before accessing it.
testsuite/
* g++.dg/ubsan/pr60569.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/ubsan/pr60569.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/ubsan.c
More information about the Gcc-bugs
mailing list