I was having an issue coping messages from another account into 2.3.x where large messages caused a seg fault 11. I was able to narrow it down to the creation of the buff char variable in dbmail-imapsession.c being initialized as the size of the message from the append {size} information. Arround line 1985. I think it ends up as a memory issue and I have worked around the problem by initializing buff with the MAX_LINESIZE. A message of about 5 MB is enough to suffice to trigger the issue on my system. Also the processing of reading in the message is extremely slow as it is trying to tokenize each 74 char line from the base64 encoded message. I also do not have to send the whole message as it bombs after the first line is sent after the append command.

Can someone else please test a large append and see if the issue is the same on linux.


Thanks, -Jon


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

_______________________________________________
Dbmail-dev mailing list
[email protected]
http://twister.fastxs.net/mailman/listinfo/dbmail-dev

Reply via email to