Enable addressable params sanitization with --param asan-stack=1.
2017-07-04 Martin Liska <mliska@suse.cz> PR sanitizer/81040 * sanopt.c (sanitize_rewrite_addressable_params): Mark the newly created variable as DECL_IGNORED_P. 2017-07-04 Martin Liska <mliska@suse.cz> PR sanitizer/81040 * g++.dg/asan/function-argument-1.C: Run the test-case w/o use-after-scope sanitization. From-SVN: r249960
This commit is contained in:
parent
6abe28643f
commit
7c819e8ae2
4 changed files with 14 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2017-07-04 Martin Liska <mliska@suse.cz>
|
||||
|
||||
PR sanitizer/81040
|
||||
* sanopt.c (sanitize_rewrite_addressable_params): Mark the
|
||||
newly created variable as DECL_IGNORED_P.
|
||||
|
||||
2017-07-04 Martin Liska <mliska@suse.cz>
|
||||
|
||||
PR ipa/81293
|
||||
|
|
|
@ -905,7 +905,7 @@ sanitize_rewrite_addressable_params (function *fun)
|
|||
tree var = build_decl (DECL_SOURCE_LOCATION (arg),
|
||||
VAR_DECL, DECL_NAME (arg), type);
|
||||
TREE_ADDRESSABLE (var) = 1;
|
||||
DECL_ARTIFICIAL (var) = 1;
|
||||
DECL_IGNORED_P (var) = 1;
|
||||
|
||||
gimple_add_tmp_var (var);
|
||||
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
2017-07-04 Martin Liska <mliska@suse.cz>
|
||||
|
||||
PR sanitizer/81040
|
||||
* g++.dg/asan/function-argument-1.C: Run the test-case w/o
|
||||
use-after-scope sanitization.
|
||||
|
||||
2017-07-04 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
* g++.dg/asan/function-argument-3.C: Add -Wno-psabi to additional
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
// { dg-do run }
|
||||
// { dg-shouldfail "asan" }
|
||||
// { dg-options "-fsanitize=address -fno-sanitize-address-use-after-scope" }
|
||||
|
||||
struct A
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue