diff options
author | Martin Liska <mliska@suse.cz> | 2018-09-24 13:22:38 +0200 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2018-09-24 11:22:38 +0000 |
commit | bf9f9292131058faa03177b7a0d6f1c265eb29f2 (patch) | |
tree | 91afbb9244655cef727a35df6ce34bfce80453b6 /gcc/asan.h | |
parent | 54b7d98ec40895719d5d62be02e5f03d08aac543 (diff) | |
download | gcc-bf9f9292131058faa03177b7a0d6f1c265eb29f2.zip gcc-bf9f9292131058faa03177b7a0d6f1c265eb29f2.tar.gz gcc-bf9f9292131058faa03177b7a0d6f1c265eb29f2.tar.bz2 |
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
Diffstat (limited to 'gcc/asan.h')
-rw-r--r-- | gcc/asan.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -110,6 +110,8 @@ extern bool asan_sanitize_stack_p (void); extern bool asan_sanitize_allocas_p (void); +extern hash_set<tree> *asan_handled_variables; + /* Return TRUE if builtin with given FCODE will be intercepted by libasan. */ |