From 5c4af2b0f56c5deb4a82740695cf041f0ab81fe3 Mon Sep 17 00:00:00 2001 From: RainRat Date: Thu, 23 Nov 2023 21:31:44 -0800 Subject: [PATCH] Update libmspack.c Remove redundant memset. See https://github.com/Cisco-Talos/clamav/issues/1087 --- libclamav/libmspack.c | 1 - 1 file changed, 1 deletion(-) diff --git a/libclamav/libmspack.c b/libclamav/libmspack.c index edd90d42b2..b74951dfc4 100644 --- a/libclamav/libmspack.c +++ b/libclamav/libmspack.c @@ -63,7 +63,6 @@ static struct mspack_file *mspack_fmap_open(struct mspack_system *self, return NULL; } mspack_handle = malloc(sizeof(*mspack_handle)); - memset(mspack_handle, 0, (sizeof(*mspack_handle))); if (!mspack_handle) { cli_dbgmsg("%s() failed at %d\n", __func__, __LINE__); return NULL;