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:16:13 +0000 (19:16 -0500)
commit8ac70bef694e733cec0f19a9438af98991cb5fa3
tree3d7061f6073ba209b8f73c7e8c7778822f091c98
parent3201a1d68121cb074c4b7e7712be77acb17df632
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