Unpoison variable partition properly (PR sanitizer/85774).
commit4f28881fbe7d3a2326862fb7b81f1ea109315ba9
authormarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 24 Sep 2018 11:22:38 +0000 (24 11:22 +0000)
committermarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 24 Sep 2018 11:22:38 +0000 (24 11:22 +0000)
tree91afbb9244655cef727a35df6ce34bfce80453b6
parentc3ee48be238014d2e22f0009644d6c650f1f83c1
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@264528 138bc75d-0d04-0410-961f-82ee72b054a4
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]