[Bug sanitizer/69863] no_sanitize_address doesn't disable stack instrumentation
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Feb 18 09:39:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69863
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
I think the right fix is to add the
&& !lookup_attribute ("no_sanitize_address", DECL_ATTRIBUTES
(current_function_decl)) check next to the && ASAN_STACK checks (perhaps even
put
(flag_sanitize & SANITIZE_ADDRESS)
&& ASAN_STACK
&& !lookup_attribute ("no_sanitize_address",
DECL_ATTRIBUTES (current_function_decl))
into a special small inline predicate in that file and use it in the 4 places.
More information about the Gcc-bugs
mailing list