From 62ad42a59d9b4623fdc948797b901c8dd3889b28 Mon Sep 17 00:00:00 2001 From: Arran Cudbard-Bell Date: Wed, 23 Feb 2022 11:05:05 -0500 Subject: [PATCH] Zero out input buffer on reset in internal md5 --- src/lib/util/md5.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/util/md5.c b/src/lib/util/md5.c index 32f3735e34..ff999c583d 100644 --- a/src/lib/util/md5.c +++ b/src/lib/util/md5.c @@ -364,6 +364,7 @@ static void fr_md5_local_ctx_reset(fr_md5_ctx_t *ctx) ctx_local->state[1] = 0xefcdab89; ctx_local->state[2] = 0x98badcfe; ctx_local->state[3] = 0x10325476; + memset(ctx_local->buffer, 0, sizeof(ctx_local->buffer)); } /** @copydoc fr_md5_ctx_copy -- 2.47.3