re PR sanitizer/81223 (ICE in instrument_null at gcc/ubsan.c:1230)
authorMarek Polacek <polacek@redhat.com>
Tue, 27 Jun 2017 11:38:31 +0000 (11:38 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Tue, 27 Jun 2017 11:38:31 +0000 (11:38 +0000)
commit786c6d10af3386f348d676a27b3d7f195dff9700
tree2670fd407e46eafafd3a3af8ae838408bbda43f0
parent1e7df2e63a369ffcc658dd5e1e3d57dabaa017c2
re PR sanitizer/81223 (ICE in instrument_null at gcc/ubsan.c:1230)

PR sanitizer/81223
* ubsan.c (instrument_null): Check get_base_address's result for null.

* gcc.dg/ubsan/pr81223.c: New test.

From-SVN: r249687
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/ubsan/pr81223.c [new file with mode: 0644]
gcc/ubsan.c