openssl/crypto/bn
Matt Caswell 0d3a7e7c91 Fix off-by-one error in BN_bn2hex
A BIGNUM can have the value of -0. The function BN_bn2hex fails to account
for this and can allocate a buffer one byte too short in the event of -0
being used, leading to a one byte buffer overrun. All usage within the
OpenSSL library is considered safe. Any security risk is considered
negligible.

With thanks to Mateusz Kocielski (LogicalTrust), Marek Kroemeke and
Filip Palian for discovering and reporting this issue.

Reviewed-by: Tim Hudson <tjh@openssl.org>
(cherry picked from commit c56353071d)

Conflicts:
	crypto/bn/bn_print.c
2015-06-04 09:31:08 +01:00
..
asm Run util/openssl-format-source -v -c . 2015-01-22 09:46:18 +00:00
.cvsignore Apply mingw patches as supplied by Roumen Petrov an Alon Bar-Lev 2008-04-17 10:19:16 +00:00
bn.h Fix off-by-one in BN_rand 2015-05-22 23:47:16 +01:00
bn.mul Import of old SSLeay release: SSLeay 0.9.1b (unreleased) 1998-12-21 11:00:56 +00:00
bn_add.c Re-align some comments after running the reformat script. 2015-01-22 09:46:52 +00:00
bn_asm.c Run util/openssl-format-source -v -c . 2015-01-22 09:46:18 +00:00
bn_blind.c Run util/openssl-format-source -v -c . 2015-01-22 09:46:18 +00:00
bn_const.c Run util/openssl-format-source -v -c . 2015-01-22 09:46:18 +00:00
bn_ctx.c Run util/openssl-format-source -v -c . 2015-01-22 09:46:18 +00:00
bn_depr.c Run util/openssl-format-source -v -c . 2015-01-22 09:46:18 +00:00
bn_div.c Run util/openssl-format-source -v -c . 2015-01-22 09:46:18 +00:00
bn_err.c Fix off-by-one in BN_rand 2015-05-22 23:47:16 +01:00
bn_exp.c Re-align some comments after running the reformat script. 2015-01-22 09:46:52 +00:00
bn_exp2.c Run util/openssl-format-source -v -c . 2015-01-22 09:46:18 +00:00
bn_gcd.c Re-align some comments after running the reformat script. 2015-01-22 09:46:52 +00:00
bn_gf2m.c Run util/openssl-format-source -v -c . 2015-01-22 09:46:18 +00:00
bn_kron.c Re-align some comments after running the reformat script. 2015-01-22 09:46:52 +00:00
bn_lcl.h Run util/openssl-format-source -v -c . 2015-01-22 09:46:18 +00:00
bn_lib.c Run util/openssl-format-source -v -c . 2015-01-22 09:46:18 +00:00
bn_mod.c Run util/openssl-format-source -v -c . 2015-01-22 09:46:18 +00:00
bn_mont.c Run util/openssl-format-source -v -c . 2015-01-22 09:46:18 +00:00
bn_mpi.c Run util/openssl-format-source -v -c . 2015-01-22 09:46:18 +00:00
bn_mul.c Re-align some comments after running the reformat script. 2015-01-22 09:46:52 +00:00
bn_nist.c Run util/openssl-format-source -v -c . 2015-01-22 09:46:18 +00:00
bn_prime.c Run util/openssl-format-source -v -c . 2015-01-22 09:46:18 +00:00
bn_prime.h Run util/openssl-format-source -v -c . 2015-01-22 09:46:18 +00:00
bn_prime.pl Minimize stack utilization in probable_prime. 2007-09-18 20:52:05 +00:00
bn_print.c Fix off-by-one error in BN_bn2hex 2015-06-04 09:31:08 +01:00
bn_rand.c Fix off-by-one in BN_rand 2015-05-22 23:47:16 +01:00
bn_recp.c Run util/openssl-format-source -v -c . 2015-01-22 09:46:18 +00:00
bn_shift.c Reject negative shifts for BN_rshift and BN_lshift 2015-05-22 23:23:50 +01:00
bn_sqr.c Re-align some comments after running the reformat script. 2015-01-22 09:46:52 +00:00
bn_sqrt.c Re-align some comments after running the reformat script. 2015-01-22 09:46:52 +00:00
bn_word.c Run util/openssl-format-source -v -c . 2015-01-22 09:46:18 +00:00
bnspeed.c Run util/openssl-format-source -v -c . 2015-01-22 09:46:18 +00:00
bntest.c Run util/openssl-format-source -v -c . 2015-01-22 09:46:18 +00:00
divtest.c Run util/openssl-format-source -v -c . 2015-01-22 09:46:18 +00:00
exp.c Run util/openssl-format-source -v -c . 2015-01-22 09:46:18 +00:00
expspeed.c Run util/openssl-format-source -v -c . 2015-01-22 09:46:18 +00:00
exptest.c Run util/openssl-format-source -v -c . 2015-01-22 09:46:18 +00:00
Makefile Fix the update target and remove duplicate file updates 2015-05-23 11:17:35 +02:00
todo Import of old SSLeay release: SSLeay 0.9.1b (unreleased) 1998-12-21 11:00:56 +00:00
vms-helper.c Run util/openssl-format-source -v -c . 2015-01-22 09:46:18 +00:00