SIGSEGV in write_one_header()
Hello,
mutt crashes with SIGSEGV in write_one_header() if there is no ':'
in the first line of message/rfc822 attachment.
To reproduce the bug:
1. Change type of attached file 1.msg from text/plain to message/rfc822.
2. View the attachment.
Attached patch fixes the bug.
--
Vsevolod Volkov (VVV-UANIC)
mailto:vvv@xxxxxxxxxxx
http://mutt.org.ua/download
--- sendlib.c.orig 2010-10-28 15:27:23.000000000 +0300
+++ sendlib.c 2010-10-28 19:05:11.000000000 +0300
@@ -1819,7 +1819,7 @@
"'key: value' format!\n"));
return 0;
}
- if (is_from)
+ if (is_from || !t)
{
tagbuf = NULL;
valbuf = mutt_substrdup (start, end);
123
123