From fffc5f1c185888159faa66ea69a0e0a3507029ec Mon Sep 17 00:00:00 2001 From: Minje Ahn Date: Wed, 2 Mar 2016 19:15:50 +0900 Subject: [PATCH] Fix svace issue Change-Id: Ib1bb924e095d2cedf71e7b84ee105b8a34e66acc Signed-off-by: Minje Ahn --- md5/md5.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/md5/md5.c b/md5/md5.c index 3782384..fed42c8 100755 --- a/md5/md5.c +++ b/md5/md5.c @@ -149,7 +149,7 @@ void MD5Final(unsigned char digest[16], MD5_CTX *ctx) MD5Transform(ctx->buf, (uint32_t *) ctx->in); byteReverse((unsigned char *)ctx->buf, 4); memcpy(digest, ctx->buf, 16); - memset((char *)ctx, 0, sizeof(ctx)); /* In case it's sensitive */ + memset((char *)ctx, 0, sizeof(*ctx)); /* In case it's sensitive */ } /* The four core functions - F1 is optimized somewhat */ -- 2.7.4