[Dovecot] Assertion failed in buffer.c

Timo Sirainen tss at iki.fi
Thu Sep 2 13:32:26 EEST 2004


On 2.9.2004, at 13:05, news.gmane.org wrote:

> dovecot-0.99.10.5-0.FC2
>
> I have had a report from a user that when accessing their inbox, the 
> connection is suddenly dropped. Dovecot reports the following:-
>
> imap(user): file buffer.c: line 357 (buffer_set_start_pos): assertion 
> failed: (abs_pos <= I_MIN(buf->used, buf->limit))
>
> From searching the list, I found an indication that it is a problem 
> with an individual message. As the user has rather a large number of 
> emails, how can I isolate the message?

I'll release 0.99.11 soon which fixes this. Or use this patch:

--- dovecot-0.99.10.9.orig/src/lib-imap/imap-base-subject.c	2003-11-08 
17:47:43.000000000 +0200
+++ dovecot-0.99.10.9/src/lib-imap/imap-base-subject.c	2004-09-02 
13:29:52.000000000 +0300
@@ -149,7 +149,7 @@

  	if (*data == ' ') {
  		/* independent from checks below - always removed */
-		data++;
+		data++; orig_data++;
  		buffer_set_start_pos(buf, buffer_get_start_pos(buf)+1);
  		ret = TRUE;
  	}

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
URL: <http://dovecot.org/pipermail/dovecot/attachments/20040902/d4db904c/attachment-0001.bin>


More information about the dovecot mailing list