[dspam-users] Dspam + cyrus-imap errors

Scott Russell lnxgeek at us.ibm.com
Thu Aug 18 17:24:22 EDT 2005


gelle at umich.edu wrote:
> 
> We had the same thing.  It's a bug in cyrus (off by one) so when they 
> read their own null from the buffer they complain the message has a 
> null.  We patched it.  We also sent the patch into cyrus.
> 

Was the patch accepted? I'm not sure when the patch went to the cyrus 
folks but being on the list I don't recall seeing it go by. I'm curious 
if this will make it into future versions of cyrus.

> --- cyrus-imapd-2.2.12/imap/spool.c     2004-10-27 16:40:50.000000000 -0400
> +++ cyrus-imapd-2.2.12p10/imap/spool.c  2005-05-27 17:25:09.000000000 -0400
> @@ -451,9 +455,9 @@
>             p[1] = '\n';
>             p[2] = '\0';
>         }
> -       else if (p[0] != '\n' && (strlen(buf) < sizeof(buf)-2)) {
> +       else if (p[0] != '\n' && (strlen(buf) < sizeof(buf)-3)) {
>             /* line contained a \0 not at the end */
>             r = IMAP_MESSAGE_CONTAINSNULL;
>             continue;
>         } 


-- 
Scott Russell <lnxgeek at us.ibm.com>
IBM Linux Technology Center System Admin




More information about the Info-cyrus mailing list