[Mutt] #2977: 'set folder = =' makes mutt segfault
#2977: 'set folder = =' makes mutt segfault
{{{
Hi,
as spotted by Sam Morris <sam@xxxxxxxxxxxxx>, 'set folder = =' makes
mutt segfault: (Debian #448728)
$ ./mutt -v
Mutt 1.5.17 (2007-11-01)
$ ./mutt -F /dev/null -e 'set folder = ='
Speicherzugriffsfehler
$ gdb ./mutt
(gdb) r -F /dev/null -e 'set folder = ='
Starting program: /cb/cb/debian/mutt/hg/mutt/mutt -F /dev/null -e 'set
folder = ='
Program received signal SIGSEGV, Segmentation fault.
0x00002b0d09a789e0 in strlen () from /lib/libc.so.6
(gdb) bt
#0 0x00002b0d09a789e0 in strlen () from /lib/libc.so.6
#1 0x00000000004649ff in _mutt_expand_path (s=0x7fffa150d7d0 "=",
slen=256, rx=0) at muttlib.c:400
#2 0x00000000004252a2 in parse_set (tmp=0x7fffa150f2c0, s=0x7fffa150d960,
data=<value optimized out>,
err=0x7fffa150f2e0) at init.c:1897
#3 0x00000000004240fd in mutt_parse_rc_line (line=<value optimized out>,
token=0x7fffa150f2c0,
err=0x7fffa150f2e0) at init.c:2334
#4 0x0000000000426309 in mutt_init (skip_sys_rc=0, commands=0x697fa0) at
init.c:2824
#5 0x00000000004312de in main (argc=5, argv=0x7fffa150fe08) at main.c:722
(gdb) quit
Christoph
}}}
--
Ticket URL: <http://dev.mutt.org/trac/ticket/2977>