cem 8cb19b99f4 Use time_t for intermediate values to avoid overflow in clock_ts_to_ct
Add additionally safety and overflow checks to clock_ts_to_ct and the
BCD routines while we're here.

Perform a safety check in sys_clock_settime() first to avoid easy local
root panic, without having to propagate an error value back through
dozens of APIs currently lacking error returns.

PR:		211960, 214300
Submitted by:	Justin McOmie <justin.mcomie at gmail.com>, kib@
Reported by:	Tim Newsham <tim.newsham at nccgroup.trust>
Reviewed by:	kib@
Sponsored by:	Dell EMC Isilon, FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D9279
2017-01-24 18:05:29 +00:00
..
2017-01-23 02:21:06 +00:00
2017-01-14 22:06:25 +00:00
2017-01-24 16:05:42 +00:00
2017-01-19 20:03:26 +00:00
2017-01-20 19:08:44 +00:00
2017-01-24 16:05:42 +00:00
2017-01-24 09:41:44 +00:00
2017-01-19 16:46:05 +00:00