re PR sanitizer/79558 (ICE: Segfault in ubsan_type_descriptor, at ubsan.c:412)
authorMarek Polacek <polacek@redhat.com>
Mon, 20 Feb 2017 15:50:23 +0000 (15:50 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Mon, 20 Feb 2017 15:50:23 +0000 (15:50 +0000)
commit85ade8d6402c58174db08a3dbd7cb7ac538cbeae
tree39de556007f2d485dbf59674934e6b5701642a79
parent80480ceee903c0f55d23995b7ae0a58fee2e7f43
re PR sanitizer/79558 (ICE: Segfault in ubsan_type_descriptor, at ubsan.c:412)

PR sanitizer/79558
* ubsan.c (ubsan_type_descriptor): Check if TYPE_MAX_VALUE is null.

* c-c++-common/ubsan/bounds-14.c: New test.

From-SVN: r245605
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/ubsan/bounds-14.c [new file with mode: 0644]
gcc/ubsan.c