提交 b5f40eb2 编写于 作者: V Viktor Dukhovni

Bugfix: Encode the requested length in s_cb.c:hexencode()

Reviewed-by: NRich Salz <rsalz@openssl.org>
上级 748f2546
......@@ -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];
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册