projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b71f63
)
bugfix: allocate sufficiently large buffer
author
Bodo Möller
<bodo@openssl.org>
Wed, 20 Feb 2002 11:59:42 +0000
(11:59 +0000)
committer
Bodo Möller
<bodo@openssl.org>
Wed, 20 Feb 2002 11:59:42 +0000
(11:59 +0000)
Submitted by: Nils Larsch
crypto/ec/ec_mult.c
patch
|
blob
|
history
diff --git
a/crypto/ec/ec_mult.c
b/crypto/ec/ec_mult.c
index f14f8d88ed7faafe33c0a683faa3ca2ed0313d2c..4e409d07bfae16e95b3aa626615494003dfc4211 100644
(file)
--- a/
crypto/ec/ec_mult.c
+++ b/
crypto/ec/ec_mult.c
@@
-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 */