<<< Date Index >>>     <<< Thread Index >>>

Re: mutt/2189: mutt segfaults if external query return spaces



The following reply was made to PR mutt/2189; it has been noted by GNATS.

From: Thomas Roessler <roessler@xxxxxxxxxxxxxxxxxx>
To: bug-any@xxxxxxxxxxxxx
Cc: 
Subject: Re: mutt/2189: mutt segfaults if external query return spaces
Date: Fri, 3 Mar 2006 10:56:42 +0100

 On 2006-03-03 02:41:41 +0100, fraff@xxxxxxx wrote:
 
 > mutt segfault when selecting mail if query_command is set to:
 
 I'm committing this to CVS:
 
 diff -u -r3.10 query.c
 --- query.c    17 Sep 2005 20:46:11 -0000      3.10
 +++ query.c    3 Mar 2006 09:55:05 -0000
 @@ -64,7 +64,8 @@
  {
    static ADDRESS *tmp;
    
 -  tmp = rfc822_cpy_adr (r->addr);
 +  if (!(tmp = rfc822_cpy_adr (r->addr)))
 +    return NULL;
    
    if(!tmp->next && !tmp->personal)
      tmp->personal = safe_strdup (r->name);
 
 
 
 -- 
 Thomas Roessler                              <roessler@xxxxxxxxxxxxxxxxxx>