#3989: segfault in mutt_local_tz
--------------------------+----------------------
Reporter: josephbisch | Owner: mutt-dev
Type: defect | Status: closed
Priority: major | Milestone:
Component: mutt | Version:
Resolution: fixed | Keywords:
--------------------------+----------------------
Changes (by kevin8t8):
* status: new => closed
* resolution: => fixed
Comment:
I've added commits 189e52d5 and 2a857f63 to the stable branch, which will
be included in the next stable release. (Likely in the next couple
weeks).
These address the direct issues causing the segfault: in this case
is_from() parsing was not checking the range of the year, and passed a
negative year into mutt_mktime(). I've changed it to behave like
mutt_parse_date(), which rejects values outside of the int range, causing
the header line to be ignored.
Because the invalid date is part of the From separator, that means the
message will no longer be seen in the mbox.
The larger issue of improving gmtime() and localtime() error handling I've
added to a gitlab ticket https://gitlab.com/muttmua/mutt/issues/11
Thank you again for opening this ticket.
--
Ticket URL: <https://dev.mutt.org/trac/ticket/3989#comment:2>
Mutt <http://www.mutt.org/>
The Mutt mail user agent