Do not handle VLA in sanitization (PR sanitizer/81460).
authorMartin Liska <mliska@suse.cz>
Fri, 28 Jul 2017 10:36:36 +0000 (12:36 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Fri, 28 Jul 2017 10:36:36 +0000 (10:36 +0000)
commit70affe6aff39d347a0e2b7f12a27e1cad4cae405
treee6761da9c83736d3fbff2f93dbf1f34a663bd39a
parent16bab95a79485ac5139992bd5f190ad95602ddda
Do not handle VLA in sanitization (PR sanitizer/81460).

2017-07-28  Martin Liska  <mliska@suse.cz>

PR sanitizer/81460
* sanopt.c (sanitize_rewrite_addressable_params): Do not rewrite
parameters that are of a variable-length.
2017-07-28  Martin Liska  <mliska@suse.cz>

PR sanitizer/81460
* gcc.dg/asan/pr81460.c: New test.

From-SVN: r250655
gcc/ChangeLog
gcc/sanopt.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/asan/pr81460.c [new file with mode: 0644]