projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac0edec
)
Read up to INT_MAX when calling legacy BIO_read() implementations
author
Matt Caswell
<matt@openssl.org>
Thu, 20 Oct 2016 23:09:02 +0000
(
00:09
+0100)
committer
Matt Caswell
<matt@openssl.org>
Fri, 28 Oct 2016 08:48:54 +0000
(09:48 +0100)
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
patch
|
blob
|
history
diff --git
a/crypto/bio/bio_meth.c
b/crypto/bio/bio_meth.c
index 7b4c340cdf34266ec6e28310f871fc9cc28d8111..daffc541a311fd2f8f9022a929abc7508c6e2c0c 100644
(file)
--- 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);