Check return value of some BN functions.
authorRich Salz <rsalz@openssl.org>
Tue, 15 Nov 2016 23:54:28 +0000 (18:54 -0500)
committerRich Salz <rsalz@openssl.org>
Wed, 16 Nov 2016 00:03:18 +0000 (19:03 -0500)
commitd18afb5bf29dc3b81b5f7a9eda2abde35041a441
tree9c66c5792423c82d4710445ca21352042e8a0f42
parent18ad46297dcd44c1ac6c9f7f2f966e19c4d45e91
Check return value of some BN functions.

Factorise multiple bn_get_top(group->field) calls
Add missing checks on some conditional BN_copy return value
Add missing checks on some BN_copy return value
Add missing checks on a few bn_wexpand return value

Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/1626)

(cherry picked from commit 78e09b53a40729f5e99829ccc733b592bd22fea1)
crypto/bn/bn_exp.c
crypto/bn/bn_mul.c
crypto/bn/bn_prime.c
crypto/bn/bn_sqr.c
crypto/ec/ec2_mult.c
crypto/rsa/rsa_gen.c