Use QEMU_SANITIZE_ADDRESS
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Thomas Huth <thuth@redhat.com>
This commit is contained in:
parent
ef0f4bda2e
commit
638466f777
@ -550,7 +550,7 @@ static void fuzz_registers(void)
|
||||
|
||||
static bool qtest_check_clang_sanitizer(void)
|
||||
{
|
||||
#if defined(__SANITIZE_ADDRESS__) || __has_feature(address_sanitizer)
|
||||
#ifdef QEMU_SANITIZE_ADDRESS
|
||||
return true;
|
||||
#else
|
||||
g_test_skip("QEMU not configured using --enable-sanitizers");
|
||||
|
@ -30,7 +30,7 @@
|
||||
#include <valgrind/valgrind.h>
|
||||
#endif
|
||||
|
||||
#if defined(__SANITIZE_ADDRESS__) || __has_feature(address_sanitizer)
|
||||
#ifdef QEMU_SANITIZE_ADDRESS
|
||||
#ifdef CONFIG_ASAN_IFACE_FIBER
|
||||
#define CONFIG_ASAN 1
|
||||
#include <sanitizer/asan_interface.h>
|
||||
|
Loading…
Reference in New Issue
Block a user