diff options
author | dim <dim@FreeBSD.org> | 2013-03-24 01:35:37 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2013-03-24 01:35:37 +0000 |
commit | e6c84f6819d7e05d9645f140d5004b875d11acbd (patch) | |
tree | 1bfaff692ece3a59ea939fe9eb07943c29fb8be8 /sbin | |
parent | 0b04a7a29ef792fb8041bce759892be5b96e1905 (diff) | |
download | FreeBSD-src-e6c84f6819d7e05d9645f140d5004b875d11acbd.zip FreeBSD-src-e6c84f6819d7e05d9645f140d5004b875d11acbd.tar.gz |
Compile contrib/tzcode/stdtime/localtime.c with -fwrapv, since it relies
on signed integer overflow wrapping. Otherwise mktime(3) and timegm(3)
can hang, in case the timestamp passed in struct tm is not representable
in a time_t. Specifically, any timestamp after 2038-01-19 03:14:07, in
combination with a 32-bit time_t.
Note that it would be better to change the code to not rely on undefined
behaviour, but it is contributed code, and it is not entirely trivial to
fix the issue properly.
MFC after: 3 days
Diffstat (limited to 'sbin')
0 files changed, 0 insertions, 0 deletions