re PR sanitizer/65367 (indefinite loop occurs with sanitize enabled and certain optim...
authorMarek Polacek <polacek@redhat.com>
Tue, 10 Mar 2015 15:57:45 +0000 (15:57 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Tue, 10 Mar 2015 15:57:45 +0000 (15:57 +0000)
commit0757674c837edede75a9c8a840c55190f971c004
tree31651ba7783d9b0a80b9108ab8f4867c1eb63163
parentdac2639d6d76a2e6b56b083e5b1773b82f3f54a3
re PR sanitizer/65367 (indefinite loop occurs with sanitize enabled and certain optimization options)

PR sanitizer/65367
* ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
when only removing the statement.  Handle expanding UBSAN_OBJECT_SIZE
separately.

* c-c++-common/ubsan/pr65367.c: New test.

Co-Authored-By: Jakub Jelinek <jakub@redhat.com>
From-SVN: r221325
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/ubsan/pr65367.c [new file with mode: 0644]
gcc/ubsan.c