Emacs crashes with segmentation fault when mime-view tries to display malformed
commitcc4f3414ac7105dd368e7e48897343086beab288
authorVitaly Mayatskikh <vitaly@gravicappa.englab.brq.redhat.com>
Fri, 31 Oct 2008 20:37:40 +0000 (31 21:37 +0100)
committerVitaly Mayatskikh <vitaly@gravicappa.englab.brq.redhat.com>
Fri, 31 Oct 2008 20:37:40 +0000 (31 21:37 +0100)
treeb8f960374459f7399222ced09c4a53039b747b1a
parentf31d8893876efbd6e5ca6388dcd091db73b2b26f
Emacs crashes with segmentation fault when mime-view tries to display malformed
base64 attach like this one:

Content-Type: text/plain
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="dashik.V4S"

Attachment is a binary file, but content-type is set to text/plain. Function
decode-coding-string crashes in such sutuation when encoding set to x-ctext.
Default encoding in APEL is x-unknown, but Wl reassigns it to x-ctext to make
summary buffer display non-ascii characters in message correctly. It is not
necessary to do for invalid attachments, so put default-mime-charset back to
x-unknown while displaying entities.
elmo/elmo-mime.el