[Midnightbsd-cvs] src [9100] trunk/crypto/openssl/crypto/bn/bn_print.c: fix a regression from our last OpenSSL patch
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sat Oct 1 08:22:02 EDT 2016
Revision: 9100
http://svnweb.midnightbsd.org/src/?rev=9100
Author: laffer1
Date: 2016-10-01 08:22:02 -0400 (Sat, 01 Oct 2016)
Log Message:
-----------
fix a regression from our last OpenSSL patch
Modified Paths:
--------------
trunk/crypto/openssl/crypto/bn/bn_print.c
Modified: trunk/crypto/openssl/crypto/bn/bn_print.c
===================================================================
--- trunk/crypto/openssl/crypto/bn/bn_print.c 2016-10-01 12:00:56 UTC (rev 9099)
+++ trunk/crypto/openssl/crypto/bn/bn_print.c 2016-10-01 12:22:02 UTC (rev 9100)
@@ -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