From bdea00c1c77d09596d7bed7a6a50cea4a0cec9f9 Mon Sep 17 00:00:00 2001 From: Andrey Kazmin Date: Thu, 3 Jun 2021 13:36:43 +0300 Subject: [PATCH] Blacklist ffi_call_int for ASan and HWASan build See: https://github.com/libffi/libffi/issues/255 Change-Id: Iaa3b738140cd02dd9b5ec1121396a1675ab4f4b3 Signed-off-by: Andrey Kazmin --- src/aarch64/ffi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/aarch64/ffi.c b/src/aarch64/ffi.c index 5c85fcd..aa19e25 100644 --- a/src/aarch64/ffi.c +++ b/src/aarch64/ffi.c @@ -582,6 +582,9 @@ extern void ffi_call_SYSV (struct call_context *context, void *frame, /* Call a function with the provided arguments and capture the return value. */ static void +#if defined(__SANITIZE_ADDRESS__) || defined(__SANITIZE_HWADDRESS__) +__attribute__((__noinline__,__no_sanitize_address__,__no_sanitize_hwaddress__)) +#endif ffi_call_int (ffi_cif *cif, void (*fn)(void), void *orig_rvalue, void **avalue, void *closure) { -- 2.34.1