#3548: Mutt segfaults when there is no valid sendmail command
--------------------+-------------------------------------------------------
Reporter: lisaev | Owner: me
Type: defect | Status: accepted
Priority: major | Milestone: 1.6
Component: mutt | Version: 1.5.21
Keywords: |
--------------------+-------------------------------------------------------
Changes (by me):
* owner: mutt-dev => me
* priority: minor => major
* status: new => accepted
* milestone: => 1.6
Comment:
This is due to the strtok() call on line 2349 in sendlib.c in
mutt_invoke_sendmail(). ``s'' is NULL when $sendmail is unset, so ps
either is set to the next field from the *previous* call to strtok(), or
NULL if there were no more fields in the *previous* call. When strtok()
returns NULL, path is NULL and there isn't any check for that.
--
Ticket URL: <http://dev.mutt.org/trac/ticket/3548#comment:1>
Mutt <http://www.mutt.org/>
The Mutt mail user agent