procmail
[Top] [All Lists]

Re: linux users - can you duplicate ?

1998-06-07 00:40:41
On 6 June 1998, mark david mcCreary <mdm(_at_)internet-tools(_dot_)com> wrote:
I am having trouble with the following formail command

      formail -rtzxTo: <test-file

where the headers in test-file have a Tab (^I) character after the
From: string, and before the email address. I get Segmenation fault
(core dumped).
[...]
test-file (should contain tab characters in Date, From, To fields)

Date: Thu, 4 Jun 1998 16:07:24 -0400 (EDT)
Sender: Jack Jones <jones(_at_)email(_dot_)unc(_dot_)edu>
From: Jack Jones <jones(_at_)email(_dot_)unc(_dot_)edu>
Reply-To: Jack Jones <jones(_at_)email(_dot_)unc(_dot_)edu>
To:   list-off(_at_)mail-list(_dot_)com
Subject: off
Message-ID: 
<Pine(_dot_)A41(_dot_)3(_dot_)95L(_dot_)980604160514(_dot_)38034A-100000(_at_)isis(_dot_)unc(_dot_)edu>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
[...]

    Yes, I can reproduce it here, although this seems to be caused by
the tab in the "To:" field rather than the one in "From:".  Formail
segfaults in free() at formail.c:625:

624  if(!(fp2=findf(fldp,&iheader))||fp2->id_len<fp2->Tot_len-1)
625     *afldp=fldp->fld_next,free(fldp),fldp= *afldp;   /* remove all */
626  else                                 /* except the ones mentioned */
627     fldp= *(afldp= &fldp->fld_next);                 /* as -i ...: */

(the actual stack trace is uninteresting).  Personally, I'd call this an
allocation bug.

    Regards,

    Liviu

-- 
Dr. Liviu Daia                   e-mail:   daia(_at_)stoilow(_dot_)imar(_dot_)ro
Institute of Mathematics         web page: http://www.imar.ro/~daia
of the Romanian Academy          PGP key:  finger 
daia(_at_)stoilow(_dot_)imar(_dot_)ro

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