rippled
Loading...
Searching...
No Matches
sanitizers.h
1#pragma once
2
3// Helper to disable ASan/HwASan for specific functions
4/*
5 ASAN flags some false positives with sudden jumps in control flow, like
6 exceptions, or when encountering coroutine stack switches. This macro can be used to disable ASAN
7 intrumentation for specific functions.
8*/
9#if defined(__GNUC__) || defined(__clang__)
10#define XRPL_NO_SANITIZE_ADDRESS __attribute__((no_sanitize("address", "hwaddress")))
11#else
12#define XRPL_NO_SANITIZE_ADDRESS
13#endif