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

Re: mutt/2163: Mutt crashes on malformed "From:" header (quoted-printable)



* 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