提交 7f5f01cf 编写于 作者: M Matt Caswell

Read up to INT_MAX when calling legacy BIO_read() implementations

In converting a new style BIO_read() call into an old one, read
as much data as we can (INT_MAX), if the size of the buffer is
>INT_MAX.
Reviewed-by: NRichard Levitte <levitte@openssl.org>
上级 ac0edec1
......@@ -112,7 +112,7 @@ int bread_conv(BIO *bio, char *out, size_t outl, size_t *read)
int ret;
if (outl > INT_MAX)
return 0;
outl = INT_MAX;
ret = bio->method->bread_old(bio, out, (int)outl);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册