dovecot-2.2: lib-storage: Fixed parsing corrupted mailbox list i...
dovecot at dovecot.org
dovecot at dovecot.org
Thu Jun 12 23:20:42 UTC 2014
details: http://hg.dovecot.org/dovecot-2.2/rev/69fe8462ec21
changeset: 17473:69fe8462ec21
user: Timo Sirainen <tss at iki.fi>
date: Fri Jun 13 01:30:14 2014 +0300
description:
lib-storage: Fixed parsing corrupted mailbox list index header.
Duplicate IDs should have caused an error instead of being silently ignored.
Found by Coverity
diffstat:
src/lib-storage/list/mailbox-list-index.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diffs (11 lines):
diff -r da3a8fcd91db -r 69fe8462ec21 src/lib-storage/list/mailbox-list-index.c
--- a/src/lib-storage/list/mailbox-list-index.c Fri Jun 13 01:26:14 2014 +0300
+++ b/src/lib-storage/list/mailbox-list-index.c Fri Jun 13 01:30:14 2014 +0300
@@ -189,6 +189,7 @@
/* allow extra space in the end as long as last id=0 */
return id == 0 ? 0 : -1;
}
+ prev_id = id;
/* get name */
p = memchr(CONST_PTR_OFFSET(data, i), '\0', size-i);
More information about the dovecot-cvs
mailing list