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>
Tue, 15 Nov 2016 23:54:28 +0000 (18:54 -0500)
commit78e09b53a40729f5e99829ccc733b592bd22fea1
tree4c19eccd305fa6889f59f9d7b929ffb8f07294e0
parentdfc3ffe50251463b4af7deeac3d407667f9050a3
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)
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