Mercurial > dropbear
diff dbhelpers.c @ 1739:13d834efc376 fuzz
merge from main
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Thu, 15 Oct 2020 19:55:15 +0800 |
parents | e75dab5bec71 |
children |
line wrap: on
line diff
--- a/dbhelpers.c Wed Feb 28 22:11:39 2018 +0800 +++ b/dbhelpers.c Thu Oct 15 19:55:15 2020 +0800 @@ -9,8 +9,9 @@ #elif defined(HAVE_EXPLICIT_BZERO) explicit_bzero(data, len); #else + /* This must be volatile to avoid compiler optimisation */ volatile void *p = data; - memset(p, 0x0, len); + memset((void*)p, 0x0, len); #endif }