Fix a possible crash in BN_from_montgomery_word
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Thu, 29 Mar 2018 09:27:29 +0000 (11:27 +0200)
committerBernd Edlinger <bernd.edlinger@hotmail.de>
Sat, 31 Mar 2018 14:31:37 +0000 (16:31 +0200)
commitf91e026e38321d0c154f535ecd5af09e424e7f1b
treeed584cd2e045eb272f1ffba120c22eaab993dc52
parent803cc8c7d4fce5ba8a4b843e0d778983d5b75c9e
Fix a possible crash in BN_from_montgomery_word

Thanks to Darovskikh Andrei for for reporting this issue.

Fixes: #5785
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5793)
crypto/bn/bn_mont.c
test/bntest.c