PR sanitizer/81604
commit829b2f3fd8f1c449bc4b01dbef0130bd57f80fc0
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 31 Jul 2017 08:24:58 +0000 (31 08:24 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 31 Jul 2017 08:24:58 +0000 (31 08:24 +0000)
treef6856056cea7ca4d38b1682f111a0f33dddb0a52
parentc1172f3a775cb4a3a5cccf8515614b934f463c4f
PR sanitizer/81604
* ubsan.c (ubsan_type_descriptor): For UBSAN_PRINT_ARRAY don't
change type to the element type, instead add eltype variable and
use it where we are interested in the element type.

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

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