From 829dbb61407072754b7ff543bfd48442845b4ae0 Mon Sep 17 00:00:00 2001 From: Theo Schlossnagle Date: Tue, 24 Jul 2018 15:47:48 +0000 Subject: [PATCH] Allow ASAN suppressions to work re: reading redzone --- aco.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/aco.c b/aco.c index 5ef668c..f01e3c3 100644 --- a/aco.c +++ b/aco.c @@ -358,6 +358,11 @@ aco_t* aco_create( assert(0); } +#if defined(__has_feature) +#if __has_feature(address_sanitizer) +__attribute__((no_sanitize_address)) +#endif +#endif void aco_resume(aco_t* resume_co){ assert(resume_co != NULL && resume_co->main_co != NULL && resume_co->is_end == 0