projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
68e55a0
)
Avoid elisp crash for OpenPGP User IDs with no e-mail address
author
Daniel Kahn Gillmor
<dkg@fifthhorseman.net>
Fri, 18 Jan 2019 08:12:07 +0000
(
03:12
-0500)
committer
Eli Zaretskii
<eliz@gnu.org>
Fri, 25 Jan 2019 08:38:57 +0000
(10:38 +0200)
* 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
lisp/gnus/mml-sec.el
patch
|
blob
|
history
diff --git
a/lisp/gnus/mml-sec.el
b/lisp/gnus/mml-sec.el
index 8c485fec376f1f032ee5798a14b9236bf1206e38..4fca4ce67b7277c2d9ff0e5bb84da8dc7e02ab38 100644
(file)
--- a/
lisp/gnus/mml-sec.el
+++ b/
lisp/gnus/mml-sec.el
@@
-658,6
+658,8
@@
The passphrase is read and cached."
(catch 'break
(dolist (uid uids nil)
(if (and (stringp (epg-user-id-string uid))
+ (car (mail-header-parse-address
+ (epg-user-id-string uid)))
(equal (downcase (car (mail-header-parse-address
(epg-user-id-string uid))))
(downcase (car (mail-header-parse-address