https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79558
--- Comment #7 from Marek Polacek <mpolacek at gcc dot gnu.org> --- Author: mpolacek Date: Mon Feb 20 17:38:57 2017 New Revision: 245611 URL: https://gcc.gnu.org/viewcvs?rev=245611&root=gcc&view=rev Log: PR sanitizer/79558 * ubsan.c (ubsan_type_descriptor): Check if TYPE_MAX_VALUE is null. * c-c++-common/ubsan/bounds-14.c: New test. Added: branches/gcc-6-branch/gcc/testsuite/c-c++-common/ubsan/bounds-14.c Modified: branches/gcc-6-branch/gcc/ChangeLog branches/gcc-6-branch/gcc/testsuite/ChangeLog branches/gcc-6-branch/gcc/ubsan.c