The following issue has been SUBMITTED. 
====================================================================== 
http://www.dbmail.org/mantis/view.php?id=262 
====================================================================== 
Reported By:                idk
Assigned To:                
====================================================================== 
Project:                    DBMail
Issue ID:                   262
Category:                   IMAP daemon
Reproducibility:            have not tried
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             25-Aug-05 20:18 CEST
Last Modified:              25-Aug-05 20:18 CEST
====================================================================== 
Summary:                    When server could not parse a message body, server
may crash due a memory corruption
Description: 
In rfcmsg.c[768] is

msg->rfcheadersize =
   strlen("subject: dbmail IMAP server info: this message could not be
parsed\r\n")
 + strlen("from: [EMAIL PROTECTED]");

but some rows before is

strcpy(mr.field, "from");
GetConfigValue("POSTMASTER", "DBMAIL", postmaster);
strncpy(mr.value, postmaster, MIME_VALUE_MAX - 1);

I have configured postmaster address with two characters less than
[EMAIL PROTECTED], I don't want to try what there will happen with
larger addresses. Maybe nothing. But compute total string length with
proper parameters will be better, I mean ;)
====================================================================== 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
25-Aug-05 20:18 idk            New Issue                                    
======================================================================

Reply via email to