bug in mail.c:getOneAddress
Steven Dirkse <[email protected]> Wed, 14 Apr 2004 00:21:41 -0400 (EDT)
| Newsgroups | gmane.comp.bug-tracking.gnats.bugs |
|---|---|
| Message-ID | <[email protected]> |
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:[email protected] http://www.gams.com