]> git.eshelyaron.com Git - emacs.git/commit
Avoid segfaults in Rmail-MIME
authorEli Zaretskii <eliz@gnu.org>
Wed, 9 Oct 2024 13:21:08 +0000 (16:21 +0300)
committerEshel Yaron <me@eshelyaron.com>
Mon, 14 Oct 2024 17:37:36 +0000 (19:37 +0200)
commit9438a1d3bd591a5eec9f7d80308cc2674fdd3fdf
tree1c78ff17b4f5d811cd57f17dfae7af378968e77e
parentc1f1100f4e2c5d5f043dd5bb1e478127065aceaf
Avoid segfaults in Rmail-MIME

Rmail-MIME decodes text of email, including removal of
CR characters, but that can segfault if the text of some
MIME part is empty.
* src/coding.c (decode_coding_raw_text):
* lisp/mail/rmailmm.el (rmail-mime-insert-decoded-text): Don't
attempt to decode empty text region.

(cherry picked from commit f520008744b1eb71accded4108888d1f2055402e)
lisp/mail/rmailmm.el
src/coding.c