Read up to INT_MAX when calling legacy BIO_read() implementations
authorMatt Caswell <matt@openssl.org>
Thu, 20 Oct 2016 23:09:02 +0000 (00:09 +0100)
committerMatt Caswell <matt@openssl.org>
Fri, 28 Oct 2016 08:48:54 +0000 (09:48 +0100)
commit7f5f01cf538a01879805d22cb9a92047d1d97b19
treee9cd46c81a91ce8c79e1ef51b4be21c0f00eabce
parentac0edec108804c383e1f7c48dd2fe72deecf6f9c
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: Richard Levitte <levitte@openssl.org>
crypto/bio/bio_meth.c