mirror of
https://github.com/XRPLF/rippled.git
synced 2026-07-23 23:20:33 +00:00
Signed-off-by: solunolab <solunolab@outlook.com> Co-authored-by: Ayaz Salikhov <mathbunnyru@users.noreply.github.com>
14 lines
465 B
C
14 lines
465 B
C
#pragma once
|
|
|
|
// Helper to disable ASan/HwASan for specific functions
|
|
/*
|
|
ASAN flags some false positives with sudden jumps in control flow, like
|
|
exceptions, or when encountering coroutine stack switches. This macro can be used to disable ASAN
|
|
instrumentation for specific functions.
|
|
*/
|
|
#if defined(__GNUC__) || defined(__clang__)
|
|
#define XRPL_NO_SANITIZE_ADDRESS __attribute__((no_sanitize("address", "hwaddress")))
|
|
#else
|
|
#define XRPL_NO_SANITIZE_ADDRESS
|
|
#endif
|