#3880: integer overflow in date.c (mutt_mktime)
-----------------------+----------------------
  Reporter:  vinc17    |      Owner:  mutt-dev
      Type:  defect    |     Status:  closed
  Priority:  critical  |  Milestone:
 Component:  mutt      |    Version:  1.7.0
Resolution:  fixed     |   Keywords:
-----------------------+----------------------

Comment (by derekmartin):

 Ugh, yeah.  If mktime() returns -1, mutt_mktime() should do the same right
 after that call.  It's an unfortunate interface--a time_t of -1 is
 perfectly valid.

 These standard time functions are sorely in need of an update...

 Uploading an updated patch, which also fixes the comments I added to
 mutt_local_tz()...  In the previous version the comments were a mishmash
 of comments from two different implementations of a similar function.

--
Ticket URL: <https://dev.mutt.org/trac/ticket/3880#comment:28>
Mutt <http://www.mutt.org/>
The Mutt mail user agent

Reply via email to