提交 d009bcbf 编写于 作者: B Bodo Möller

bugfix: allocate sufficiently large buffer

Submitted by: Nils Larsch
上级 4b71f63a
......@@ -233,7 +233,7 @@ int EC_POINTs_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *scalar,
wsize = OPENSSL_malloc(totalnum * sizeof wsize[0]);
wNAF_len = OPENSSL_malloc(totalnum * sizeof wNAF_len[0]);
wNAF = OPENSSL_malloc(totalnum * sizeof wNAF[0] + 1);
wNAF = OPENSSL_malloc((totalnum + 1) * sizeof wNAF[0]);
if (wNAF != NULL)
{
wNAF[0] = NULL; /* preliminary pivot */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册