Check for invalid divisors in BN_div.
authorEmilia Kasper <emilia@openssl.org>
Mon, 15 Dec 2014 13:52:22 +0000 (14:52 +0100)
committerEmilia Kasper <emilia@openssl.org>
Wed, 17 Dec 2014 09:01:04 +0000 (10:01 +0100)
commita015758d11f8fd2171a3b73be60e90bed1bd857e
tree46f354b5ee2750793493555607ff063d00eca1f0
parent789da2c73d875af59b14156b6295aa4bdfc4f424
Check for invalid divisors in BN_div.

Invalid zero-padding in the divisor could cause a division by 0.

Reviewed-by: Richard Levitte <levitte@openssl.org>
(cherry picked from commit a43bcd9e96c5180e5c6c82164ece643c0097485e)
crypto/bn/bn_div.c