Fix ASAN_(UN)POISON_MEMORY_REGION macros for MSVC.
Closes #306. PiperOrigin-RevId: 451609183 Change-Id: Iadc2db7c5550261050340e38b7f7eb8a806013a1
This commit is contained in:
committed by
Copybara-Service
parent
b5a6a725e5
commit
1da4e1c784
@@ -29,6 +29,9 @@
|
||||
|
||||
#ifdef ADDRESS_SANITIZER
|
||||
#include <sanitizer/asan_interface.h>
|
||||
#elif defined(_MSC_VER)
|
||||
#define ASAN_POISON_MEMORY_REGION(addr, size)
|
||||
#define ASAN_UNPOISON_MEMORY_REGION(addr, size)
|
||||
#else
|
||||
#define ASAN_POISON_MEMORY_REGION(addr, size) ((void)(addr), (void)(size))
|
||||
#define ASAN_UNPOISON_MEMORY_REGION(addr, size) ((void)(addr), (void)(size))
|
||||
|
||||
Reference in New Issue
Block a user