procmail
[Top] [All Lists]

Re: procmail segmentation fault

2001-11-28 16:10:41
Warly <warly(_at_)mandrakesoft(_dot_)com> writes:
with this .procmailrc:

:0 Wfh
| false

Procmail segfaults:

Here's the fix, as a patch against 3.22.

*** src/mailfold.c      Mon Sep 10 23:58:34 2001
--- src/mailfold.c      Wed Nov 28 17:02:37 2001
***************
*** 378,384 ****
        dfilled=mailread=0;
       else if(rhead)                           /* only read in a new header */
        { memblk new;
!       dfilled=mailread=0;makeblock(&new,0);readdyn(&new,&dfilled,0);
        if(tobesent>dfilled&&isprivate)              /* put it in place here */
         { tmemmove(themail.p+dfilled,thebody,filled-=tobesent);
           tmemmove(themail.p,new.p,dfilled);
--- 378,385 ----
        dfilled=mailread=0;
       else if(rhead)                           /* only read in a new header */
        { memblk new;
!       dfilled=mailread=0;makeblock(&new,0);
!       readdyn(&new,&dfilled,thebody-themail.p);
        if(tobesent>dfilled&&isprivate)              /* put it in place here */
         { tmemmove(themail.p+dfilled,thebody,filled-=tobesent);
           tmemmove(themail.p,new.p,dfilled);



Philip Guenther
Procmail Maintainer
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>