bug-gnats
[Top][All Lists]
Advanced

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

Found a bug in Gnats 4.0


From: Graham Wheeler
Subject: Found a bug in Gnats 4.0
Date: Thu, 19 Aug 2004 23:54:22 -0700

In mail.c, line 229.

 

  /* ignore any ending white space */

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

 

 

The >= should be just >. Else if addr == addrStart you’re checking the character preceding the start of the buffer, and the program segfaults shortly thereafter.

 

 

 


reply via email to

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