bn/bn_lib.c: remove bn_check_top from bn_expand2.
authorAndy Polyakov <appro@openssl.org>
Fri, 6 Jul 2018 11:16:40 +0000 (13:16 +0200)
committerAndy Polyakov <appro@openssl.org>
Thu, 12 Jul 2018 12:50:54 +0000 (14:50 +0200)
commite42395e637c3507b80b25c7ed63236898822d2f1
tree3c1008b35aded449c25af974c1db31e830630791
parent7da84e0f0088fc9d575039fb173f12af0ae25832
bn/bn_lib.c: remove bn_check_top from bn_expand2.

Trouble is that addition is postponing expansion till carry is
calculated, and if addition carries, top word can be zero, which
triggers assertion in bn_check_top.

Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: David Benjamin <davidben@google.com>
(Merged from https://github.com/openssl/openssl/pull/6662)
crypto/bn/bn_lib.c