提交 cd98ab64 编写于 作者: R Richard Levitte

Incorrect argument order to memset()

上级 b3823ac6
......@@ -715,7 +715,7 @@ static int cca_rsa_verify(int type, const unsigned char *m, unsigned int m_len,
if (type == NID_sha1 || type == NID_md5)
{
memset(hashBuffer, keyLength+1, 0);
memset(hashBuffer, 0, keyLength+1);
OPENSSL_free(hashBuffer);
}
......@@ -838,7 +838,7 @@ static int cca_rsa_sign(int type, const unsigned char *m, unsigned int m_len,
if (type == NID_sha1 || type == NID_md5)
{
memset(hashBuffer, keyLength+1, 0);
memset(hashBuffer, 0, keyLength+1);
OPENSSL_free(hashBuffer);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册