]> git.ipfire.org Git - thirdparty/chrony.git/commit
util: don't allow time too close to 32-bit time_t overflow
authorMiroslav Lichvar <mlichvar@redhat.com>
Fri, 10 Apr 2015 07:30:52 +0000 (09:30 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Fri, 10 Apr 2015 08:05:15 +0000 (10:05 +0200)
commit39c2bcd46244e278fb8f9c4f6a8c60b16930335d
treefd1919c0ce15a56bf894b4b82afd7ea50505e04f
parentae10664b2429694f2cebdca06588e0c63ccfc52c
util: don't allow time too close to 32-bit time_t overflow

In UTI_IsTimeOffsetSane() consider time in one year interval before
32-bit time_t overflow (in 2038) as invalid. Hopefully everything will
be using 64-bit time_t when that time comes.
util.c