[openssl-commits] [openssl] master update
Rich Salz
rsalz at openssl.org
Thu Aug 27 21:30:00 UTC 2015
The branch master has been updated
via 3c65047d30dacca345d30269b95af4a5c413e8d1 (commit)
from c03726ca4153fca8d66185837008aa078969d386 (commit)
- Log -----------------------------------------------------------------
commit 3c65047d30dacca345d30269b95af4a5c413e8d1
Author: Rich Salz <rsalz at akamai.com>
Date: Thu Aug 27 17:17:26 2015 -0400
Fix memory over-read
Fix from David Baggett via tweet.
Signed-off-by: Rich Salz <rsalz at openssl.org>
Reviewed-by: Richard Levitte <levitte at openssl.org>
-----------------------------------------------------------------------
Summary of changes:
crypto/bn/bn_lib.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/crypto/bn/bn_lib.c b/crypto/bn/bn_lib.c
index c8e8519..2ca6bea 100644
--- a/crypto/bn/bn_lib.c
+++ b/crypto/bn/bn_lib.c
@@ -553,7 +553,7 @@ BIGNUM *BN_bin2bn(const unsigned char *s, int len, BIGNUM *ret)
return (NULL);
bn_check_top(ret);
/* Skip leading zero's. */
- for ( ; *s == 0 && len > 0; s++, len--)
+ for ( ; len > 0 && *s == 0; s++, len--)
continue;
n = len;
if (n == 0) {
More information about the openssl-commits
mailing list