procmail
[Top] [All Lists]

Re: Formail bug

1998-06-12 12:09:35
mark david mcCreary <mdm(_at_)internet-tools(_dot_)com> writes:
I am writing to you, as there seems to be other variations that cause the
same core dump in formail.

<example elided>

Sorry folks, I brain farted when I whipped out that patch.  Moving
the increment caused too little space to be allocated.  Here's a new
patch from the original sources.


Philip Guenther


Index: src/formail.c
===================================================================
RCS file: /src/CVS/net/daemon/procmail/src/formail.c,v
retrieving revision 1.1.1.3
diff -c -r1.1.1.3 formail.c
*** formail.c   1997/04/11 22:46:52     1.1.1.3
--- formail.c   1998/06/12 18:55:08
***************
*** 589,595 ****
           if(chp[-1]==HEAD_DELIMITER)
              if(*chp!=' '&&fldp->Tot_len>j+1)
               { chp=j+(*afldp=fldp=
!                 realloc(fldp,FLD_HEADSIZ+(i= ++fldp->Tot_len)))->fld_text;
                 tmemmove(chp+1,chp,i-j);*chp=' ';
               }
              else if(fldp->Tot_len<=j+2)
--- 589,595 ----
           if(chp[-1]==HEAD_DELIMITER)
              if(*chp!=' '&&fldp->Tot_len>j+1)
               { chp=j+(*afldp=fldp=
!                 realloc(fldp,FLD_HEADSIZ+(i=fldp->Tot_len++)+1))->fld_text;
                 tmemmove(chp+1,chp,i-j);*chp=' ';
               }
              else if(fldp->Tot_len<=j+2)

<Prev in Thread] Current Thread [Next in Thread>
  • Re: Formail bug, Philip Guenther <=