bugfix: allocate sufficiently large buffer
Submitted by: Nils Larsch
This commit is contained in:
parent
9c75b2d931
commit
211b8685d3
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user