diff options
| author | Daniel Kahn Gillmor | 2019-01-18 03:12:07 -0500 |
|---|---|---|
| committer | Eli Zaretskii | 2019-01-25 10:38:57 +0200 |
| commit | 90177d7f12d25e403abc6f1bdf242aed308a7bb8 (patch) | |
| tree | d776cfa28380634a576b66486c099222e1e7cffe | |
| parent | 68e55a0bfc15d6b39ae7aa5650f375ff6784246d (diff) | |
| download | emacs-90177d7f12d25e403abc6f1bdf242aed308a7bb8.tar.gz emacs-90177d7f12d25e403abc6f1bdf242aed308a7bb8.zip | |
Avoid elisp crash for OpenPGP User IDs with no e-mail address
* lisp/gnus/mml-sec.el (mml-secure-check-user-id): Verify that
there is an e-mail address in the current User ID before trying
to downcase it. (Bug#34121)
Copyright-paperwork-exempt: yes
| -rw-r--r-- | lisp/gnus/mml-sec.el | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/gnus/mml-sec.el b/lisp/gnus/mml-sec.el index 8c485fec376..4fca4ce67b7 100644 --- a/lisp/gnus/mml-sec.el +++ b/lisp/gnus/mml-sec.el | |||
| @@ -658,6 +658,8 @@ The passphrase is read and cached." | |||
| 658 | (catch 'break | 658 | (catch 'break |
| 659 | (dolist (uid uids nil) | 659 | (dolist (uid uids nil) |
| 660 | (if (and (stringp (epg-user-id-string uid)) | 660 | (if (and (stringp (epg-user-id-string uid)) |
| 661 | (car (mail-header-parse-address | ||
| 662 | (epg-user-id-string uid))) | ||
| 661 | (equal (downcase (car (mail-header-parse-address | 663 | (equal (downcase (car (mail-header-parse-address |
| 662 | (epg-user-id-string uid)))) | 664 | (epg-user-id-string uid)))) |
| 663 | (downcase (car (mail-header-parse-address | 665 | (downcase (car (mail-header-parse-address |