movemail: don't dump core if the current time is outlandish
commit7d760fd8f4fd2fb622183106912c34845e280333
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 23 Sep 2014 19:21:54 +0000 (23 12:21 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 23 Sep 2014 19:21:54 +0000 (23 12:21 -0700)
treeedec27e530e6a7d8b0e984ac82d2e820d24b2da2
parentdac5be10f3f08c78cf98a4b9d4774b46b16ace40
movemail: don't dump core if the current time is outlandish

* movemail.c (popmail): Check for mbx_delimit_begin failure.
(mbx_delimit_begin): Fail if the current time is so outlandish
that localtime would fail or asctime would have undefined
behavior.  Use strftime to avoid asctime undefined behavior.
lib-src/ChangeLog
lib-src/movemail.c