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

Comment (by code@…):

 None
 Filename untitled-part.sig could not be saved, problem: [Errno 13]
 Permission denied:
 
'/home/mutt/trac/files/attachments/ticket/4c0/4c0ca50acf1dba181d72e4ecfffaeb06d9ad64ac/90449eb29c8e1d56f09effe64f19fbf629d6557d.sig'\{{{
 On Fri, Sep 30, 2016 at 12:59:43AM -0000, Mutt wrote:
 {{{
 }}}

 I believe his should work regardless of CHAR_BIT or any sizes involved:

 #define TIME_T_MAX ((time_t)(~((unsigned long long)((time_t)1)) >> 1))
 }}}

 [attachment:"untitled-part.sig"]

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

Reply via email to