Blacklist ffi_call_int for ASan and HWASan build 43/289643/1
authorAndrey Kazmin <a.kazmin@partner.samsung.com>
Thu, 3 Jun 2021 10:36:43 +0000 (13:36 +0300)
committerDongkyun Son <dongkyun.s@samsung.com>
Mon, 13 Mar 2023 02:45:35 +0000 (11:45 +0900)
See:
https://github.com/libffi/libffi/issues/255

Change-Id: Iaa3b738140cd02dd9b5ec1121396a1675ab4f4b3
Signed-off-by: Andrey Kazmin <a.kazmin@partner.samsung.com>
src/aarch64/ffi.c

index 5c85fcd..aa19e25 100644 (file)
@@ -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)
 {