#3725: Mutt segfaults when no gpg key exists
--------------------------+---------------------------
Reporter: greencopper | Owner: kevin8t8
Type: defect | Status: closed
Priority: major | Milestone:
Component: mutt | Version: 1.5.23
Resolution: fixed | Keywords: gpg, segfault
--------------------------+---------------------------
Changes (by Kevin McCarthy <kevin@…>):
* status: assigned => closed
* resolution: => fixed
Comment:
In [5a86319adad0d17e4acaf8a580bfc9eb247547d0]:
{{{
#!CommitTicketReference repository=""
revision="5a86319adad0d17e4acaf8a580bfc9eb247547d0"
Fix segv in pgp_getkeybystr(). (closes #3725)
When searching for keys, and the user supplies "" to match against,
pgp_getkeybystr will have values:
p = "";
l = 0;
After returning from pgp_select_key(), it will try to assign to
p[l-1].
(As a note, the function is chopping off and restoring the trailing
"!" character because of ticket #1928.)
}}}
--
Ticket URL: <http://dev.mutt.org/trac/ticket/3725#comment:3>
Mutt <http://www.mutt.org/>
The Mutt mail user agent