diff --git a/src/libsodium/sodium/utils.c b/src/libsodium/sodium/utils.c index bb94fe88..2c6d7cdb 100644 --- a/src/libsodium/sodium/utils.c +++ b/src/libsodium/sodium/utils.c @@ -92,6 +92,9 @@ sodium_memzero(void *const pnt, const size_t len) #elif HAVE_WEAK_SYMBOLS memset(pnt, 0, len); _sodium_dummy_symbol_to_prevent_memzero_lto(pnt, len); +# ifdef HAVE_AMD64_ASM + __asm__ __volatile__ ("" : : "p"(pnt)); +# endif #else volatile unsigned char *volatile pnt_ = (volatile unsigned char *volatile) pnt;