openssl/crypto/bn
Matt Caswell 3610719931 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:26:43 +01:00
..
asm bn/asm/x86_64-mont5.pl: fix valgrind error. 2015-05-24 21:31:49 +02:00
.cvsignore Ignore more. 2012-12-13 12:43:18 +00:00
bn.h Fix off-by-one in BN_rand 2015-05-22 23:43:07 +01:00
bn.mul
bn_add.c Re-align some comments after running the reformat script. 2015-01-22 09:31:48 +00:00
bn_asm.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
bn_blind.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
bn_const.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
bn_ctx.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
bn_depr.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
bn_div.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
bn_err.c Fix off-by-one in BN_rand 2015-05-22 23:43:07 +01:00
bn_exp.c Fix error handling in bn_exp 2015-03-12 09:29:48 +00:00
bn_exp2.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
bn_gcd.c Re-align some comments after running the reformat script. 2015-01-22 09:31:48 +00:00
bn_gf2m.c bn/bn_gf2m.c: appease STACK, unstable code detector. 2015-05-24 21:27:32 +02:00
bn_kron.c Re-align some comments after running the reformat script. 2015-01-22 09:31:48 +00:00
bn_lcl.h bn/bn_lcl.h: fix MIPS-specific gcc version check. 2015-05-26 10:07:59 +02:00
bn_lib.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
bn_mod.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
bn_mont.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
bn_mpi.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
bn_mul.c Re-align some comments after running the reformat script. 2015-01-22 09:31:48 +00:00
bn_nist.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
bn_prime.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
bn_prime.h Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +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:26:43 +01:00
bn_rand.c Fix off-by-one in BN_rand 2015-05-22 23:43:07 +01:00
bn_recp.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
bn_shift.c Reject negative shifts for BN_rshift and BN_lshift 2015-05-22 23:19:34 +01:00
bn_sqr.c Re-align some comments after running the reformat script. 2015-01-22 09:31:48 +00:00
bn_sqrt.c Re-align some comments after running the reformat script. 2015-01-22 09:31:48 +00:00
bn_word.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
bn_x931p.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
bnspeed.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
bntest.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
divtest.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
exp.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
expspeed.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
exptest.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
Makefile Fix the update target and remove duplicate file updates 2015-05-23 06:25:12 +02:00
rsaz_exp.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
rsaz_exp.h Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00
todo
vms-helper.c Run util/openssl-format-source -v -c . 2015-01-22 09:31:38 +00:00