Re: mutt/2163: Mutt crashes on malformed "From:" header (quoted-printable)
The following reply was made to PR mutt/2163; it has been noted by GNATS.
From: TAKAHASHI Tamotsu <ttakah@xxxxxxxxxxxxxxxxx>
To: Mutt Developers <mutt-dev@xxxxxxxx>, bug-any@xxxxxxxxxxxxx
Cc:
Subject: Re: mutt/2163: Mutt crashes on malformed "From:" header
(quoted-printable)
Date: Sun, 15 Jan 2006 19:49:03 +0900
* Sun Jan 15 2006 Vincent Lefevre <vincent@xxxxxxxxxx>
> On 2006-01-14 21:15:01 +0100, Vincent Lefevre wrote:
> > This is due to the namequot patch.
>
> I've attached a fixed version of this namequot patch. The problem
> was that mutt_get_name could return a null pointer.
Thanks! I didn't realize that safe_strdup() could return NULL.
> /* don't return NULL to avoid segfault when printing/comparing */
> - return ("");
> + tmp = safe_malloc (1);
> + *tmp = '\0';
> + return tmp;
Great! That's what I intended.
--
tamo