dovecot-2.2: lib-storage: Fixed assert-crash when reading binary...

dovecot at dovecot.org dovecot at dovecot.org
Mon Sep 7 19:07:21 UTC 2015


details:   http://hg.dovecot.org/dovecot-2.2/rev/865405fce42e
changeset: 19112:865405fce42e
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Sep 07 22:06:16 2015 +0300
description:
lib-storage: Fixed assert-crash when reading binary streams.

diffstat:

 src/lib-storage/index/index-mail-binary.c |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r caaaa7c12edd -r 865405fce42e src/lib-storage/index/index-mail-binary.c
--- a/src/lib-storage/index/index-mail-binary.c	Mon Sep 07 21:54:20 2015 +0300
+++ b/src/lib-storage/index/index-mail-binary.c	Mon Sep 07 22:06:16 2015 +0300
@@ -345,6 +345,7 @@
 			/* go to the next block */
 			if (++block_idx == block_count) {
 				i_assert(i_stream_is_eof(full_input));
+				ret = -1;
 				break;
 			}
 			cur_block++;


More information about the dovecot-cvs mailing list