]> granicus.if.org Git - mutt/commit
Fix segfault when viewing text attachments in compose menu. (closes #3644)
authorKevin McCarthy <kevin@8t8.us>
Sat, 5 Oct 2013 07:57:49 +0000 (15:57 +0800)
committerKevin McCarthy <kevin@8t8.us>
Sat, 5 Oct 2013 07:57:49 +0000 (15:57 +0800)
commit49bc7c240a99f5caaee60d8c8254ce4edf45551a
tree0dc8544dc67a56fa211b72707de73f21752e7cd2
parentf30819adefe01da0a2d22e965071c75feb568a35
Fix segfault when viewing text attachments in compose menu.  (closes #3644)

The segfault was introduced in changeset b9f9e3147eb4.  Since decoding
and charset conversion aren't needed for attachments when composing a
message, this patch reverts to just using mutt_save_attachment() to view
"raw data" for text attachments in the compose/send case.

This patch is based on Michael Elkins' patch at
http://dev.mutt.org/trac/attachment/ticket/3644/view_attach_compose_segfault
with just a missing return value check added.
attach.c