diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2014-05-31 18:49:48 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2014-05-31 18:49:48 +0000 |
commit | d73ddad5cb6e9da4b50f330bae4e4444c2127dc0 (patch) | |
tree | 13b4c6a48dd288addc5588f0e36bc3200b002dd5 /lib | |
parent | 8014e1de5810a0b42320351fab42953fb83186d5 (diff) |
copy a comment placed in other files; req from miod
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libssl/src/crypto/ec/ecp_nistp224.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libssl/src/crypto/ec/ecp_nistp224.c b/lib/libssl/src/crypto/ec/ecp_nistp224.c index afe25853e6b..17777f517b7 100644 --- a/lib/libssl/src/crypto/ec/ecp_nistp224.c +++ b/lib/libssl/src/crypto/ec/ecp_nistp224.c @@ -1437,9 +1437,11 @@ ec_GFp_nistp224_points_mul(const EC_GROUP * group, EC_POINT * r, } secrets = calloc(num_points, sizeof(felem_bytearray)); pre_comp = calloc(num_points, 17 * 3 * sizeof(felem)); - if (mixed) + if (mixed) { + /* XXX should do more int overflow checking */ tmp_felems = reallocarray(NULL, (num_points * 17 + 1), sizeof(felem)); + } if ((secrets == NULL) || (pre_comp == NULL) || (mixed && (tmp_felems == NULL))) { ECerr(EC_F_EC_GFP_NISTP224_POINTS_MUL, ERR_R_MALLOC_FAILURE); goto err; |