+ UNPOISON macro

This commit is contained in:
Frank Denis 2017-11-06 23:57:23 +01:00
parent ce3ca605a3
commit a9b6eda279

View File

@ -235,9 +235,12 @@ xor_buf(unsigned char *out, const unsigned char *in, size_t n)
#ifdef HAVE_LIBCTGRIND
extern void ct_poison (const void *, size_t);
extern void ct_unpoison(const void *, size_t);
# define POISON(X, L) ct_poison((X), (L))
# define UNPOISON(X, L) ct_unpoison((X), (L))
#else
# define POISON(X, L) (void) 0
# define UNPOISON(X, L) (void) 0
#endif
#endif