From 268515018d40a7655ceba3503624c493a7ab4834 Mon Sep 17 00:00:00 2001 From: Jacob Barthelmeh Date: Mon, 18 Jan 2016 10:22:12 -0700 Subject: [PATCH] help out clang static analyzer --- wolfcrypt/src/rsa.c | 1 + 1 file changed, 1 insertion(+) diff --git a/wolfcrypt/src/rsa.c b/wolfcrypt/src/rsa.c index 6b165638f..dceaea9bf 100644 --- a/wolfcrypt/src/rsa.c +++ b/wolfcrypt/src/rsa.c @@ -454,6 +454,7 @@ static int wc_RsaPad_OAEP(const byte* input, word32 inputLen, byte* pkcsBlock, #endif return MEMORY_E; } + XMEMSET(dbMask, 0, pkcsBlockLen - hLen - 1); /* help static analyzer */ ret = wc_MGF(mgf, seed, hLen, dbMask, pkcsBlockLen - hLen - 1); if (ret != 0) {