Merge pull request #264 from JacobBarthelmeh/OAEP

help out clang static analyzer
This commit is contained in:
toddouska
2016-01-18 15:31:18 -08:00

View File

@ -454,6 +454,7 @@ static int wc_RsaPad_OAEP(const byte* input, word32 inputLen, byte* pkcsBlock,
#endif #endif
return MEMORY_E; return MEMORY_E;
} }
XMEMSET(dbMask, 0, pkcsBlockLen - hLen - 1); /* help static analyzer */
ret = wc_MGF(mgf, seed, hLen, dbMask, pkcsBlockLen - hLen - 1); ret = wc_MGF(mgf, seed, hLen, dbMask, pkcsBlockLen - hLen - 1);
if (ret != 0) { if (ret != 0) {