diff options
author | Marek Polacek <polacek@redhat.com> | 2015-02-18 09:46:59 +0000 |
---|---|---|
committer | Marek Polacek <mpolacek@gcc.gnu.org> | 2015-02-18 09:46:59 +0000 |
commit | c7400e2fecfd0cc44c553517a59f8a70951cf6cf (patch) | |
tree | c5459558a64da41ec0b46a0be7dff9d59065c89c /gcc/cgraphclones.c | |
parent | d77052881bc8f8a79f195a3859719c517d5aa9ad (diff) | |
download | gcc-c7400e2fecfd0cc44c553517a59f8a70951cf6cf.zip gcc-c7400e2fecfd0cc44c553517a59f8a70951cf6cf.tar.gz gcc-c7400e2fecfd0cc44c553517a59f8a70951cf6cf.tar.bz2 |
re PR sanitizer/65081 (-fsanitize=object-size fails with simple pointer arithm)
PR sanitizer/65081
* ubsan.c (OBJSZ_MAX_OFFSET): Define.
(ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
is in range [-16K, -1]. Don't issue run-time error if
(ptr > ptr + offset).
* c-c++-common/ubsan/pr65081.c: New test.
From-SVN: r220784
Diffstat (limited to 'gcc/cgraphclones.c')
0 files changed, 0 insertions, 0 deletions