Commit ef7fcc83 authored by Matt Johnston's avatar Matt Johnston
Browse files

make data pointers volatile so that memory zeroing won't get optimised away

branch : libtomcrypt
extra : convert_revision : fa68f28b581de8ed5f2af8f1ab95b33bcf4a7e18
parent 2b69e81c
......@@ -12,7 +12,7 @@
void zeromem(void *dst, size_t len)
unsigned char *mem = (unsigned char *)dst;
volatile unsigned char *mem = (unsigned char *)dst;
_ARGCHK(dst != NULL);
while (len-- > 0)
*mem++ = 0;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment