summaryrefslogtreecommitdiffstats
path: root/crypto/evp/bio_b64.c
diff options
context:
space:
mode:
authorBen Laurie <ben@openssl.org>2002-11-13 16:43:43 +0100
committerBen Laurie <ben@openssl.org>2002-11-13 16:43:43 +0100
commit54a656ef081f72a740c550ebd8099b40b8b5cde0 (patch)
tree9b3638b56848c7f0648b84cfa7ad056116b37a1b /crypto/evp/bio_b64.c
parentWhen build as dynamic engines, the loading functions should be defined (diff)
downloadopenssl-54a656ef081f72a740c550ebd8099b40b8b5cde0.tar.xz
openssl-54a656ef081f72a740c550ebd8099b40b8b5cde0.zip
Security fixes brought forward from 0.9.7.
Diffstat (limited to 'crypto/evp/bio_b64.c')
-rw-r--r--crypto/evp/bio_b64.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/evp/bio_b64.c b/crypto/evp/bio_b64.c
index f12eac1b55..6e550f6a43 100644
--- a/crypto/evp/bio_b64.c
+++ b/crypto/evp/bio_b64.c
@@ -165,6 +165,7 @@ static int b64_read(BIO *b, char *out, int outl)
{
i=ctx->buf_len-ctx->buf_off;
if (i > outl) i=outl;
+ OPENSSL_assert(ctx->buf_off+i < sizeof ctx->buf);
memcpy(out,&(ctx->buf[ctx->buf_off]),i);
ret=i;
out+=i;