|
38 | 38 | # define MEM_NOACCESS(a,len) VALGRIND_MAKE_MEM_NOACCESS(a,len) |
39 | 39 | # define MEM_CHECK_ADDRESSABLE(a,len) VALGRIND_CHECK_MEM_IS_ADDRESSABLE(a,len) |
40 | 40 | # define MEM_CHECK_DEFINED(a,len) VALGRIND_CHECK_MEM_IS_DEFINED(a,len) |
| 41 | +# define MEM_GET_VBITS(a,b,len) VALGRIND_GET_VBITS(a,b,len) |
| 42 | +# define MEM_SET_VBITS(a,b,len) VALGRIND_SET_VBITS(a,b,len) |
41 | 43 | # define REDZONE_SIZE 8 |
42 | 44 | #elif defined(__SANITIZE_ADDRESS__) |
43 | 45 | # include <sanitizer/asan_interface.h> |
|
48 | 50 | # define MEM_NOACCESS(a,len) ASAN_POISON_MEMORY_REGION(a,len) |
49 | 51 | # define MEM_CHECK_ADDRESSABLE(a,len) ((void) 0) |
50 | 52 | # define MEM_CHECK_DEFINED(a,len) ((void) 0) |
| 53 | +# define MEM_GET_VBITS(a,b,len) ((void) 0) |
| 54 | +# define MEM_SET_VBITS(a,b,len) ((void) 0) |
51 | 55 | # define REDZONE_SIZE 8 |
52 | 56 | #elif __has_feature(memory_sanitizer) |
53 | 57 | # include <sanitizer/msan_interface.h> |
|
57 | 61 | # define MEM_NOACCESS(a,len) ((void) 0) |
58 | 62 | # define MEM_CHECK_ADDRESSABLE(a,len) ((void) 0) |
59 | 63 | # define MEM_CHECK_DEFINED(a,len) __msan_check_mem_is_initialized(a,len) |
| 64 | +# define MEM_GET_VBITS(a,b,len) __msan_copy_shadow(b,a,len) |
| 65 | +# define MEM_SET_VBITS(a,b,len) __msan_copy_shadow(a,b,len) |
60 | 66 | # define REDZONE_SIZE 8 |
61 | 67 | #else |
62 | 68 | # define MEM_UNDEFINED(a,len) ((void) (a), (void) (len)) |
63 | 69 | # define MEM_MAKE_DEFINED(a,len) ((void) 0) |
64 | 70 | # define MEM_NOACCESS(a,len) ((void) 0) |
65 | 71 | # define MEM_CHECK_ADDRESSABLE(a,len) ((void) 0) |
66 | 72 | # define MEM_CHECK_DEFINED(a,len) ((void) 0) |
| 73 | +# define MEM_GET_VBITS(a,b,len) ((void) 0) |
| 74 | +# define MEM_SET_VBITS(a,b,len) ((void) 0) |
67 | 75 | # define REDZONE_SIZE 0 |
68 | 76 | #endif /* HAVE_VALGRIND_MEMCHECK_H */ |
69 | 77 |
|
|
0 commit comments