dovecot-2.1: pop3: Fixed assert crash when doing UIDL on empty m...

dovecot at dovecot.org dovecot at dovecot.org
Sat Jul 7 05:51:48 EEST 2012


details:   http://hg.dovecot.org/dovecot-2.1/rev/ea18b2ddb67b
changeset: 14601:ea18b2ddb67b
user:      Timo Sirainen <tss at iki.fi>
date:      Sat Jul 07 05:51:37 2012 +0300
description:
pop3: Fixed assert crash when doing UIDL on empty mailbox on some setups.

diffstat:

 src/pop3/pop3-commands.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 1093c74f54af -r ea18b2ddb67b src/pop3/pop3-commands.c
--- a/src/pop3/pop3-commands.c	Wed Jul 04 10:57:40 2012 +0300
+++ b/src/pop3/pop3-commands.c	Sat Jul 07 05:51:37 2012 +0300
@@ -759,7 +759,7 @@
 				      str_hash, (hash_cmp_callback_t *)strcmp);
 	client->uidl_pool = pool_alloconly_create("message uidls", 1024);
 	client->message_uidls = p_new(client->uidl_pool, const char *,
-				      client->messages_count);
+				      client->messages_count+1);
 
 	str = t_str_new(128); msgnum = 0;
 	while (mailbox_search_next(search_ctx, &mail)) {


More information about the dovecot-cvs mailing list