aboutsummaryrefslogtreecommitdiff
path: root/gcc/dwarf2out.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2017-03-31 20:39:25 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2017-03-31 20:39:25 +0200
commit6f3af3562804db0ef656dcc02b1e192c8f7fc8cc (patch)
treebcd8eeb5904c373580e8d225e212003161cc8d72 /gcc/dwarf2out.c
parent77734296b4b2634ea4b0222cc5d829d0eb99825f (diff)
downloadgcc-6f3af3562804db0ef656dcc02b1e192c8f7fc8cc.zip
gcc-6f3af3562804db0ef656dcc02b1e192c8f7fc8cc.tar.gz
gcc-6f3af3562804db0ef656dcc02b1e192c8f7fc8cc.tar.bz2
re PR sanitizer/79572 (reference binding to null pointer not reported with -fsanitize=undefined)
PR c++/79572 * c-ubsan.h (ubsan_maybe_instrument_reference): Change argument to tree *. * c-ubsan.c (ubsan_maybe_instrument_reference): Likewise. Handle not just NOP_EXPR to REFERENCE_TYPE, but also INTEGER_CST with REFERENCE_TYPE. * cp-gimplify.c (cp_genericize_r): Sanitize INTEGER_CSTs with REFERENCE_TYPE. Adjust ubsan_maybe_instrument_reference caller for NOP_EXPR to REFERENCE_TYPE. * g++.dg/ubsan/null-8.C: New test. From-SVN: r246621
Diffstat (limited to 'gcc/dwarf2out.c')
0 files changed, 0 insertions, 0 deletions