diff --git a/src/crypto_impl.c b/src/crypto_impl.c index e5456fa9..47ef0461 100644 --- a/src/crypto_impl.c +++ b/src/crypto_impl.c @@ -186,6 +186,7 @@ void sqlcipher_free(void *ptr, int sz) { */ void* sqlcipher_malloc(int sz) { void *ptr = sqlite3Malloc(sz); + memset(ptr, 0, sz); #ifndef OMIT_MEMLOCK if(ptr) { #if defined(__unix__) || defined(__APPLE__)