dovecot-2.2: maildir: Don't limit uidlist line lengths to 4096 b...

dovecot at dovecot.org dovecot at dovecot.org
Fri Oct 10 15:12:30 UTC 2014


details:   http://hg.dovecot.org/dovecot-2.2/rev/4a401e9853ee
changeset: 17936:4a401e9853ee
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Oct 10 18:11:58 2014 +0300
description:
maildir: Don't limit uidlist line lengths to 4096 bytes.
Although this always indicates corruption, the current code doesn't handle
that very nicely. One fix would be to just ignore such long lines, but this
is easier to implement..

diffstat:

 src/lib-storage/index/maildir/maildir-uidlist.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 6c341dcec32a -r 4a401e9853ee src/lib-storage/index/maildir/maildir-uidlist.c
--- a/src/lib-storage/index/maildir/maildir-uidlist.c	Fri Oct 10 00:46:15 2014 +0300
+++ b/src/lib-storage/index/maildir/maildir-uidlist.c	Fri Oct 10 18:11:58 2014 +0300
@@ -758,7 +758,7 @@
 							    st.st_size/8));
 	}
 
-	input = i_stream_create_fd(fd, 4096, FALSE);
+	input = i_stream_create_fd(fd, (size_t)-1, FALSE);
 	i_stream_seek(input, last_read_offset);
 
 	orig_uid_validity = uidlist->uid_validity;


More information about the dovecot-cvs mailing list