Summary: | sys-freebsd/freebsd-lib-8.0: when compiled with "-fstrict-overflow" or "-O2", mktime() dosen't handle overflowed time well. | ||
---|---|---|---|
Product: | Gentoo/Alt | Reporter: | Naohiro Aota <naota> |
Component: | FreeBSD | Assignee: | Gentoo/BSD Team <bsd+disabled> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | FreeBSD | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Naohiro Aota
2010-06-17 11:34:03 UTC
Does anyone test the C code above? Is this the same mktime check done by autotools macros? If so, I think I have seen it also fail on vanilla FreeBSD (just tested your testcase and it doesn't succeeds either). Perhaps you may wanna ask upstream about it? http://svnweb.freebsd.org/base/head/contrib/tzcode/stdtime/localtime.c?revision=226828&view=markup 1787 increment_overflow(number, delta) It highly depend on overflow behavior. Let's add -fno-strict-overflow to all freebsd-lib-*.ebuild. Change added to the tree. |