[Bug sanitizer/81040] asan false negative if parameter of a global function passed by reference
marxin at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Jul 4 10:53:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81040
--- Comment #17 from Martin Liška <marxin at gcc dot gnu.org> ---
Author: marxin
Date: Tue Jul 4 10:53:18 2017
New Revision: 249960
URL: https://gcc.gnu.org/viewcvs?rev=249960&root=gcc&view=rev
Log:
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.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/sanopt.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/g++.dg/asan/function-argument-1.C
More information about the Gcc-bugs
mailing list