From 8e95c5d30f197716ba132e3f2494c5e220f3e5cd Mon Sep 17 00:00:00 2001 From: Ben Fuhrmannek Date: Thu, 21 Oct 2021 18:55:48 +0200 Subject: added some array initialization, just in case. --- src/sp_utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/sp_utils.c') diff --git a/src/sp_utils.c b/src/sp_utils.c index ff85494..2f0f565 100644 --- a/src/sp_utils.c +++ b/src/sp_utils.c @@ -72,8 +72,8 @@ void sp_log_msgf(char const* restrict feature, int level, int type, int compute_hash(const char* const restrict filename, char* restrict file_hash) { - unsigned char buf[1024]; - unsigned char digest[SHA256_SIZE]; + unsigned char buf[1024] = {0}; + unsigned char digest[SHA256_SIZE] = {0}; PHP_SHA256_CTX context; size_t n; -- cgit v1.3