Fix overflow check in BN_bn2dec()
authorKazuki Yamaguchi <k@rhe.jp>
Sun, 21 Aug 2016 17:36:36 +0000 (02:36 +0900)
committerMatt Caswell <matt@openssl.org>
Mon, 22 Aug 2016 12:38:48 +0000 (13:38 +0100)
commit099e2968ed3c7d256cda048995626664082b1b30
tree8531cdef0f64461a84a85d83469e6b45c9245a77
parent1c288878af42650fbda911b702ae7b551a545b1c
Fix overflow check in BN_bn2dec()

Fix an off by one error in the overflow check added by 07bed46f332fc
("Check for errors in BN_bn2dec()").

Reviewed-by: Stephen Henson <steve@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
crypto/bn/bn_print.c