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 16:10:59 +0000 (17:10 +0100)
commit3612ff6fcec0e3d1f2a598135fe12177c0419582
tree954f84a48727360b367e7b48888779e04a1bedec
parentcfd40fd39e69f5e3c654ae8fbf9acb1d2a051144
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>
(cherry picked from commit 099e2968ed3c7d256cda048995626664082b1b30)
crypto/bn/bn_print.c