diff options
| author | Katsumi Yamaoka | 2017-09-13 10:04:14 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2017-09-13 10:04:14 +0000 |
| commit | 61b8f9c4903734ae5a019b1f8e7706287aeb0f9d (patch) | |
| tree | 23e21ce6b34791ecdd8511b3f146f0f044645096 | |
| parent | a0202fdc85ddc36b73a1c7c4f2d3ec45cd22c5e1 (diff) | |
| download | emacs-61b8f9c4903734ae5a019b1f8e7706287aeb0f9d.tar.gz emacs-61b8f9c4903734ae5a019b1f8e7706287aeb0f9d.zip | |
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.
| -rw-r--r-- | lisp/gnus/gnus-art.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el index 8fc5ebaa9bd..226a56e1870 100644 --- a/lisp/gnus/gnus-art.el +++ b/lisp/gnus/gnus-art.el | |||
| @@ -6342,8 +6342,9 @@ Provided for backwards compatibility." | |||
| 6342 | ;; in each element are in the increasing order. | 6342 | ;; in each element are in the increasing order. |
| 6343 | (dolist (handle (reverse gnus-article-mime-handle-alist)) | 6343 | (dolist (handle (reverse gnus-article-mime-handle-alist)) |
| 6344 | (if (stringp (cadr handle)) | 6344 | (if (stringp (cadr handle)) |
| 6345 | (setq flat (nconc flat (gnus-article-mime-handles | 6345 | (when (cddr handle) |
| 6346 | (cddr handle) (list (car handle)) flat))) | 6346 | (setq flat (nconc flat (gnus-article-mime-handles |
| 6347 | (cddr handle) (list (car handle)) flat)))) | ||
| 6347 | (delq (rassq (cdr handle) flat) flat) | 6348 | (delq (rassq (cdr handle) flat) flat) |
| 6348 | (setq flat (nconc flat (list (cons (list (car handle)) | 6349 | (setq flat (nconc flat (list (cons (list (car handle)) |
| 6349 | (cdr handle))))))) | 6350 | (cdr handle))))))) |