Unpoison variable partition properly (PR sanitizer/85774).
authorMartin Liska <mliska@suse.cz>
Mon, 24 Sep 2018 11:22:38 +0000 (13:22 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Mon, 24 Sep 2018 11:22:38 +0000 (11:22 +0000)
commitbf9f9292131058faa03177b7a0d6f1c265eb29f2
tree91afbb9244655cef727a35df6ce34bfce80453b6
parent54b7d98ec40895719d5d62be02e5f03d08aac543
Unpoison variable partition properly (PR sanitizer/85774).

2018-09-24  Martin Liska  <mliska@suse.cz>

PR sanitizer/85774
* asan.c: Make asan_handled_variables extern.
* asan.h: Likewise.
* cfgexpand.c (expand_stack_vars): Make sure
a representative is unpoison if another
variable in the partition is handled by
use-after-scope sanitization.
2018-09-24  Martin Liska  <mliska@suse.cz>

PR sanitizer/85774
* g++.dg/asan/pr85774.C: New test.

From-SVN: r264528
gcc/ChangeLog
gcc/asan.c
gcc/asan.h
gcc/cfgexpand.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/asan/pr85774.C [new file with mode: 0644]