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

mutt/2441: Segmentation fault in batch mode with large files



>Number:         2441
>Notify-List:    
>Category:       mutt
>Synopsis:       Segmentation fault in batch mode with large files
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    mutt-dev
>State:          open
>Keywords:       
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Aug 23 15:14:43 +0200 2006
>Originator:     yaelgilad@xxxxxxxxxxxxx
>Release:        mutt-1.4.2.2
>Organization:
>Environment:
Windows 2000 with cygwin
>Description:
Sending a large file via command line causes a segmentation fault
>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
>Add-To-Audit-Trail:

>Unformatted: