[Midnightbsd-cvs] src [9101] stable/0.8/crypto/openssl/crypto/bn/bn_print.c: fix a regression in openssl patch
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sat Oct 1 08:23:10 EDT 2016
Revision: 9101
http://svnweb.midnightbsd.org/src/?rev=9101
Author: laffer1
Date: 2016-10-01 08:23:10 -0400 (Sat, 01 Oct 2016)
Log Message:
-----------
fix a regression in openssl patch
Modified Paths:
--------------
stable/0.8/crypto/openssl/crypto/bn/bn_print.c
Modified: stable/0.8/crypto/openssl/crypto/bn/bn_print.c
===================================================================
--- stable/0.8/crypto/openssl/crypto/bn/bn_print.c 2016-10-01 12:22:02 UTC (rev 9100)
+++ stable/0.8/crypto/openssl/crypto/bn/bn_print.c 2016-10-01 12:23:10 UTC (rev 9101)
@@ -141,14 +141,13 @@
if (BN_is_negative(t))
*p++ = '-';
- i = 0;
while (!BN_is_zero(t)) {
+ if (lp - bn_data >= bn_data_num)
+ goto err;
*lp = BN_div_word(t, BN_DEC_CONV);
if (*lp == (BN_ULONG)-1)
goto err;
lp++;
- if (lp - bn_data >= bn_data_num)
- goto err;
}
lp--;
/*
More information about the Midnightbsd-cvs
mailing list