diff options
author | Matt Caswell <matt@openssl.org> | 2016-10-21 00:09:02 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2016-10-28 09:48:54 +0100 |
commit | 7f5f01cf538a01879805d22cb9a92047d1d97b19 (patch) | |
tree | e9cd46c81a91ce8c79e1ef51b4be21c0f00eabce /crypto/bio | |
parent | ac0edec108804c383e1f7c48dd2fe72deecf6f9c (diff) |
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>
Diffstat (limited to 'crypto/bio')
-rw-r--r-- | crypto/bio/bio_meth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/bio/bio_meth.c b/crypto/bio/bio_meth.c index 7b4c340cdf..daffc541a3 100644 --- a/crypto/bio/bio_meth.c +++ b/crypto/bio/bio_meth.c @@ -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); |