#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
Keywords: |
----------------------+----------------------
With a 32-bit ABI at least, an integer overflow is possible in date.c when
a date of an e-mail message is out of range. When I build Mutt r6802 with
{{{./configure CFLAGS="-O2 -fsanitize=undefined -fno-sanitize-recover
-m32"}}}
it crashes on the attached mbox file with the message:
{{{date.c:99:5: runtime error: signed integer overflow: 42601680 * 60
cannot be represented in type 'long int'}}}
--
Ticket URL: <https://dev.mutt.org/trac/ticket/3880>
Mutt <http://www.mutt.org/>
The Mutt mail user agent