27 #ifdef HAVE_VALGRIND_MEMCHECK_H
28 #include <valgrind/memcheck.h>
47 memset(p, 0x01, length);
49 #ifdef HAVE_VALGRIND_MEMCHECK_H
50 (void)VALGRIND_MAKE_MEM_NOACCESS(p, length);
68 memset(p, 0x02, length);
70 #ifdef HAVE_VALGRIND_MEMCHECK_H
71 (void)VALGRIND_MAKE_MEM_UNDEFINED(p, length);
static void poison_undefined(void *p, size_t length)
Poisons the specified memory area and marks it as "not defined".
static void poison_noaccess(void *p, size_t length)
Poisons the specified memory area and marks it as "not accessible".