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

Re: [Mutt] #2441: Segmentation fault in batch mode with large files



#2441: Segmentation fault in batch mode with large files

Changes (by brendan):

  * priority:  critical => major
  * status:  reopened => closed
  * resolution:  => fixed

Old description:

> {{{
> Sending a large file via command line causes a segmentation fault
>
> There was one important piece of information missing:
> The mail sending fails at mutt_invoke_sendmail due to a problem in my
> mail server (not mutt related),
> and then mutt_pager is called, thus starting the previously defined
> sequence.
> >How-To-Repeat:
> tail -3000 somefile | mutt -s "Sending something"  user@xxxxxxxxxxxxx
> >Fix:
> The crash happens at the mutt_pager function.
> The function uses curses "LINES".
> However, since we are running in batch mode, curses was not initialized,
> and LINES evaluates to zero.
> A lot of bad things happen; e.g. lineInfo is allocated with zero bytes,
> and is thus a NULL pointer
> }}}

New description:

 Sending a large file via command line causes a segmentation fault

 There was one important piece of information missing:
 The mail sending fails at mutt_invoke_sendmail due to a problem in my mail
 server (not mutt related),
 and then mutt_pager is called, thus starting the previously defined
 sequence.
 >How-To-Repeat:
 tail -3000 somefile | mutt -s "Sending something"  user@xxxxxxxxxxxxx
 >Fix:
 The crash happens at the mutt_pager function.
 The function uses curses "LINES".
 However, since we are running in batch mode, curses was not initialized,
 and LINES evaluates to zero.
 A lot of bad things happen; e.g. lineInfo is allocated with zero bytes,
 and is thus a NULL pointer

Comment:

 This is fixed in [359d9fbb5fda]

-- 
Ticket URL: <http://dev.mutt.org/trac/ticket/2441#comment:4>