#3853: mutt segfault in _mutt_make_string with fcc-save-hook set
-----------------------+----------------------
  Reporter:  wfiveash  |      Owner:  mutt-dev
      Type:  defect    |     Status:  closed
  Priority:  major     |  Milestone:
 Component:  mutt      |    Version:
Resolution:  fixed     |   Keywords:
-----------------------+----------------------
Changes (by Kevin McCarthy <kevin@…>):

 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"9378d21fc7fe338cfa8a9674c411c7e3fb54c8b3"
 6722:9378d21fc7fe]:
 {{{
 #!CommitTicketReference repository=""
 revision="9378d21fc7fe338cfa8a9674c411c7e3fb54c8b3"
 Initialize mutt windows even in batch mode. (closes #3853)

 mutt_select_fcc() calls mutt_addr_hook() -> mutt_make_string() which
 refers to MuttIndexWindow->cols when calling mutt_FormatString().  In
 batch mode, MuttIndexWindow hasn't been initialized, leading to a
 segfault.

 This might be the only overlap, but it seems wiser to just initialize
 the mutt windows in case there are other references (now or in the
 future) when processing format strings in batch mode.
 }}}

--
Ticket URL: <https://dev.mutt.org/trac/ticket/3853#comment:3>
Mutt <http://www.mutt.org/>
The Mutt mail user agent

Reply via email to