[Bug sanitizer/81040] asan false negative if parameter of a global function passed by reference
ryabinin.a.a at gmail dot com
gcc-bugzilla@gcc.gnu.org
Mon Jul 3 13:34:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81040
--- Comment #15 from Andrey Ryabinin <ryabinin.a.a at gmail dot com> ---
(In reply to Martin Liška from comment #14)
> Fixed on trunk.
Thanks.
However there is slight problem with this. Instrumentation is missing without
-fsanitize-address-use-after-scope option.
IMO, it should depend only on --param asan-stack=1.
So the following doesn't produce any output:
gcc -fsanitize=address -fno-sanitize-address-use-after-scope -O2 asan_test.c &&
./a.out
Can we fix this?
More information about the Gcc-bugs
mailing list