PR sanitizer/65367
authormpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 10 Mar 2015 15:57:45 +0000 (15:57 +0000)
committermpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 10 Mar 2015 15:57:45 +0000 (15:57 +0000)
commit57583407540893387f6eb0f26b435a4d4d5cf0b3
tree31651ba7783d9b0a80b9108ab8f4867c1eb63163
parent2a13bc53287c663be7a91d46c3ad7ce73ab27ae2
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.

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