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

[Mutt] #3302: valgrind complaining about ADDRESS.idn_checked



#3302: valgrind complaining about ADDRESS.idn_checked
--------------------+-------------------------------------------------------
 Reporter:  kees    |       Owner:  mutt-dev
     Type:  defect  |      Status:  new     
 Priority:  minor   |   Milestone:          
Component:  mutt    |     Version:          
 Keywords:          |  
--------------------+-------------------------------------------------------
 ==27761== Conditional jump or move depends on uninitialised value(s)
 ==27761==    at 0x49CB54: check_idn (mutt_idna.c:40)
 ==27761==    by 0x49CDF5: mutt_addr_for_display (mutt_idna.c:231)
 ==27761==    by 0x436F34: T.98 (hdrline.c:127)
 ==27761==    by 0x43788F: hdr_format_str (hdrline.c:477)
 ==27761==    by 0x476F86: mutt_FormatString (muttlib.c:1320)
 ==27761==    by 0x436B5F: _mutt_make_string (hdrline.c:738)
 ==27761==    by 0x44108C: menu_redraw_index (menu.c:214)
 ==27761==    by 0x4206B7: mutt_index_menu (curs_main.c:563)
 ==27761==    by 0x43D6C6: main (main.c:1026)

 I think this is related to an allocation of an ADDRESS not going through
 rfc822_new_address():

 $ grep alloc *.c | grep ADDRESS
 hcache.c:    *a = safe_malloc(sizeof (ADDRESS));

 I think the attached patch will fix it, but I have not tested.

-- 
Ticket URL: <http://dev.mutt.org/trac/ticket/3302>
Mutt <http://www.mutt.org/>
The Mutt mail user agent