bug-gnats
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug in mail.c:getOneAddress


From: Steven Dirkse
Subject: bug in mail.c:getOneAddress
Date: Wed, 14 Apr 2004 00:21:41 -0400 (EDT)

Sorry if this was reported before - I searched the gnats-prs archive for
getOneAddress but didn't find this one.

The getOneAddress routine has some code to strip off trailing whitespace,
but this goes a bit too far, causing bogus inputs to a later routine and a
seg fault on my RHEL 3.0 box.  Here's the original code:

  while (addr >= addrStart
        && isspace((int)(unsigned char)*(addr-sizeof(*addr))))
    {
      addr--;
    }

but the first test should be just "addr > addrStart".  To reproduce this,
just make sure an empty string is passed to getOneAddress.


Steven Dirkse, Ph.D.    GAMS Development Corporation
1217 Potomac St. NW             Washington DC  20007
Voice: (202)342-0180              Fax: (202)342-0181
mailto:sdirkse@gams.com          http://www.gams.com





reply via email to

[Prev in Thread] Current Thread [Next in Thread]