#3990: segfault in hdr_format_str
--------------------------+----------------------
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 the
large year, despite being less than {{{INT_MAX}}}, was still causing
{{{localtime}}} to return NULL. I've added a cap at 9999.
As noted in #3989, the larger issue of improving gmtime() and localtime()
error handling has been added to a gitlab ticket
https://gitlab.com/muttmua/mutt/issues/11
--
Ticket URL: <https://dev.mutt.org/trac/ticket/3990#comment:5>
Mutt <http://www.mutt.org/>
The Mutt mail user agent