Commit 61b8f9c4 authored by Katsumi Yamaoka's avatar Katsumi Yamaoka

Protect against malformed MIME messages that cause inf-loop (bugfix)

* lisp/gnus/gnus-art.el (gnus-article-mime-handles):
Protect against malformed MIME messages that cause inf-loop.
parent a0202fdc
......@@ -6342,8 +6342,9 @@ Provided for backwards compatibility."
;; in each element are in the increasing order.
(dolist (handle (reverse gnus-article-mime-handle-alist))
(if (stringp (cadr handle))
(setq flat (nconc flat (gnus-article-mime-handles
(cddr handle) (list (car handle)) flat)))
(when (cddr handle)
(setq flat (nconc flat (gnus-article-mime-handles
(cddr handle) (list (car handle)) flat))))
(delq (rassq (cdr handle) flat) flat)
(setq flat (nconc flat (list (cons (list (car handle))
(cdr handle)))))))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment