[openssl-commits] [openssl] master update
Viktor Dukhovni
viktor at openssl.org
Thu Mar 17 04:20:17 UTC 2016
The branch master has been updated
via b5f40eb279e37c86d0634db5ffcc37517ea97694 (commit)
from 748f254657ab900c0de5e9e1843150c2df4c4bea (commit)
- Log -----------------------------------------------------------------
commit b5f40eb279e37c86d0634db5ffcc37517ea97694
Author: Viktor Dukhovni <openssl-users at dukhovni.org>
Date: Wed Mar 16 23:58:58 2016 -0400
Bugfix: Encode the requested length in s_cb.c:hexencode()
Reviewed-by: Rich Salz <rsalz at openssl.org>
-----------------------------------------------------------------------
Summary of changes:
apps/s_cb.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/apps/s_cb.c b/apps/s_cb.c
index 047f2ce..66b2a50 100644
--- a/apps/s_cb.c
+++ b/apps/s_cb.c
@@ -1106,7 +1106,7 @@ static char *hexencode(const unsigned char *data, size_t len)
}
cp = out = app_malloc(ilen, "TLSA hex data buffer");
- while (ilen-- > 0) {
+ while (len-- > 0) {
*cp++ = hex[(*data >> 4) & 0x0f];
*cp++ = hex[*data++ & 0x0f];
}
More information about the openssl-commits
mailing list