diff options
author | Tomas Mraz <tmraz@fedoraproject.org> | 2019-04-03 19:07:00 +0200 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2019-04-16 10:50:30 +0100 |
commit | d34bce03acc53c583df954bbed65d4800751563a (patch) | |
tree | 177cf772756087a3de27f737ab973e1e386de11d /crypto | |
parent | c9dc22bc3d7f2df670dff66f04935e540e1b931a (diff) |
Add testing of RDONLY memory BIOs
Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/8649)
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/bio/bss_mem.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/bio/bss_mem.c b/crypto/bio/bss_mem.c index 51fae3b2f0..a7f2bfbae0 100644 --- a/crypto/bio/bss_mem.c +++ b/crypto/bio/bss_mem.c @@ -204,6 +204,7 @@ static int mem_read(BIO *b, char *out, int outl) if ((out != NULL) && (ret > 0)) { memcpy(out, bm->data, ret); bm->length -= ret; + bm->max -= ret; bm->data += ret; } else if (bm->length == 0) { ret = b->num; |