dovecot-2.2: lib: Fixed read buffer overflow in istream-base64-d...
dovecot at dovecot.org
dovecot at dovecot.org
Thu Jun 19 09:34:17 UTC 2014
details: http://hg.dovecot.org/dovecot-2.2/rev/c65b4c41698c
changeset: 17506:c65b4c41698c
user: Timo Sirainen <tss at iki.fi>
date: Thu Jun 19 12:32:45 2014 +0300
description:
lib: Fixed read buffer overflow in istream-base64-decoder error handling
diffstat:
src/lib/istream-base64-decoder.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 07456a200816 -r c65b4c41698c src/lib/istream-base64-decoder.c
--- a/src/lib/istream-base64-decoder.c Thu Jun 19 12:31:55 2014 +0300
+++ b/src/lib/istream-base64-decoder.c Thu Jun 19 12:32:45 2014 +0300
@@ -61,7 +61,7 @@
if (base64_decode(data, size, &pos, &buf) < 0) {
io_stream_set_error(&stream->iostream,
"Invalid base64 data: 0x%s",
- binary_to_hex(data+pos, I_MAX(size-pos, 8)));
+ binary_to_hex(data+pos, I_MIN(size-pos, 8)));
stream->istream.stream_errno = EINVAL;
return -1;
}
More information about the dovecot-cvs
mailing list