]> granicus.if.org Git - neomutt/commit
fix: prevent timezone overflow 830/head
authorRichard Russon <rich@flatcap.org>
Mon, 9 Oct 2017 12:39:26 +0000 (13:39 +0100)
committerRichard Russon <rich@flatcap.org>
Sat, 14 Oct 2017 14:51:27 +0000 (15:51 +0100)
commit1949aa0e27d11f678508a0330ccbfc320865f99e
treebb95ec4ff9a6657c5eb9898894fb348186099d0c
parent032db326ffd9cf88c838f2a07dc55417c808b20c
fix: prevent timezone overflow

On 32-bit arches it's easy to over-/under-flow the date.
We replace these with the max/min values allowed in a time_t.

When we encounter one of these dates, pretend it's UTC to prevent
another overflow.

Fixes #819
Fixes #820
lib/date.c