We ran into a problem with hypermail core dumping when parsing messages with long lines, QP encoded with soft line breaks. The problem was a buffer overflow, which the appended diff seems to have fixed.
The messages were coming from Outlook Express, multipart/alternative, the alternatives being text and html. It appears the messages were composed as html, then Outlook Express generated the text alternative by turning each paragraph into one line, QP encoded with soft line breaks (= at the end of the maximum 76 character lines to satisfy mime's maximum line length requirement). When the decoded line exceeded the size of tempbuff, then hypermail would core dump.
Thanks,
Ron Stanonik
stanonik_at_cogsci.ucsd.edu
! size = strlen(tempbuff);
if(out + size < outsize) { ! strcpy(output, tempbuff); output += size; out += size; }
}
if (lastpos < input) {
int size;
! size = input-lastpos;
if(out + size < outsize) { ! sprintf(output, "%.*s", input-lastpos, lastpos); output += size; out += size; }Received on Mon 25 Jan 1999 05:29:49 PM GMT
This archive was generated by hypermail 2.3.0 : Sat 13 Mar 2010 03:46:11 AM GMT GMT