Do not instrument register variables in object-size sanitizer (PR sanitizer/70878).
commit2e0dd73aaadb3ef26ed422e2a0dfc6581989720c
authormarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 11 Apr 2017 13:08:08 +0000 (11 13:08 +0000)
committermarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 11 Apr 2017 13:08:08 +0000 (11 13:08 +0000)
tree9c3575235036b0618e6b6a16c1b0684a79a4c3fd
parentd3a3d1a6f5773da52474e77e0bb07319d34ac149
Do not instrument register variables in object-size sanitizer (PR sanitizer/70878).

2017-04-11  Martin Liska  <mliska@suse.cz>

PR sanitizer/70878
* ubsan.c (instrument_object_size): Do not instrument register
variables.
2017-04-11  Martin Liska  <mliska@suse.cz>

PR sanitizer/70878
* gcc.dg/ubsan/pr70878.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@246837 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/ubsan/pr70878.c [new file with mode: 0644]
gcc/ubsan.c