17 #ifndef FUZZING_HEADERS_NO_IMPL
19 extern "C" void *__asan_region_is_poisoned(const void *beg
, size_t size
);
23 extern "C" void __msan_check_mem_is_initialized(const volatile void *x
, size_t size
);
26 void memory_test_asan(const void* data
, const size_t size
)
32 if ( __asan_region_is_poisoned(data
, size
) != NULL
) {
38 void memory_test_msan(const void* data
, const size_t size
)
44 __msan_check_mem_is_initialized(data
, size
);
48 void memory_test(const void* data
, const size_t size
)
50 memory_test_asan(data
, size
);
51 memory_test_msan(data
, size
);
55 void memory_test(const T
& t
)
61 void memory_test(const std::string
& s
)
66 memory_test(s
.data(), s
.size());
72 } /* namespace memory */
73 } /* namespace fuzzing */