re PR sanitizer/80414 ([UBSAN] segfault with -fsanitize=undefined)
authorDenis Khalikov <d.khalikov@partner.samsung.com>
Thu, 13 Apr 2017 14:52:23 +0000 (14:52 +0000)
committerMaxim Ostapenko <chefmax@gcc.gnu.org>
Thu, 13 Apr 2017 14:52:23 +0000 (17:52 +0300)
commitabac4c3400842a20e3f09714134377ae8133ee95
tree5b7d0a266ba8621da1826fad0f8009fa4d0b9fc4
parent3535a0fb6f43d4d985f3bbf9699bc3eea4fb64b0
re PR sanitizer/80414 ([UBSAN] segfault with -fsanitize=undefined)

PR sanitizer/80414
* ubsan.c (ubsan_expand_bounds_ifn): Pass original index
to ubsan_encode_value.

* c-c++-common/ubsan/bounds-15.c: New test.

From-SVN: r246909
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/ubsan/bounds-15.c [new file with mode: 0644]
gcc/ubsan.c