mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-18 23:52:14 -06:00
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
2 changed files with 2 additions and 2 deletions
|
@ -550,7 +550,7 @@ static void fuzz_registers(void)
|
||||||
|
|
||||||
static bool qtest_check_clang_sanitizer(void)
|
static bool qtest_check_clang_sanitizer(void)
|
||||||
{
|
{
|
||||||
#if defined(__SANITIZE_ADDRESS__) || __has_feature(address_sanitizer)
|
#ifdef QEMU_SANITIZE_ADDRESS
|
||||||
return true;
|
return true;
|
||||||
#else
|
#else
|
||||||
g_test_skip("QEMU not configured using --enable-sanitizers");
|
g_test_skip("QEMU not configured using --enable-sanitizers");
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
#include <valgrind/valgrind.h>
|
#include <valgrind/valgrind.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__SANITIZE_ADDRESS__) || __has_feature(address_sanitizer)
|
#ifdef QEMU_SANITIZE_ADDRESS
|
||||||
#ifdef CONFIG_ASAN_IFACE_FIBER
|
#ifdef CONFIG_ASAN_IFACE_FIBER
|
||||||
#define CONFIG_ASAN 1
|
#define CONFIG_ASAN 1
|
||||||
#include <sanitizer/asan_interface.h>
|
#include <sanitizer/asan_interface.h>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue