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

Re: mutt/2173: When replying to a message, Mutt should filter control characters from headers



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

From: TAKAHASHI Tamotsu <ttakah@xxxxxxxxxxxxxxxxx>
To: bug-any@xxxxxxxxxxxxx
Cc: 
Subject: Re: mutt/2173: When replying to a message, Mutt should filter control 
characters from headers
Date: Wed, 15 Mar 2006 12:43:53 +0900

 * Tue Mar 14 2006 Vincent Lefevre <vincent@xxxxxxxxxx>
 > On 2006-03-04 15:57:52 +0100, Takahashi Tamotsu wrote:
 > > Synopsis: When replying to a message, Mutt should filter control 
 > > characters from headers
 > > 
 > > **** Comment added by tamo on Sat, 04 Mar 2006 15:57:52 +0100 ****
 > >  Attaching another version:
 > >  * filter any unprintable characters
 > >  * filter rfc2231 as well
 > > 
 > > http://www10.plala.or.jp/sanrinsha/tamo/bug2173_rfc2047+2231.diff
 > 
 > Is there any reason why this patch hasn't been applied to CVS yet?
 
 I've just found a possible segmentation fault in it.
 
 A spam may have a header like "From: =?shift-jis?B??= <x@x>"
 but I assumed that mutt_buffer_addstr(b) is called at least
 once in mutt_filter_unprintable().
 
 mbyte.c:
 -  *s = b->data;
 +  *s = b->data ? b->data : safe_calloc(1,1);
 
 -- 
 tamo