[Midnightbsd-cvs] src [9009] trunk/lib/libc/stdtime/Makefile.inc: signed ints overflow wrapping is needed here or else mktime(3) can hang.
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Thu Sep 29 21:47:10 EDT 2016
Revision: 9009
http://svnweb.midnightbsd.org/src/?rev=9009
Author: laffer1
Date: 2016-09-29 21:47:09 -0400 (Thu, 29 Sep 2016)
Log Message:
-----------
signed ints overflow wrapping is needed here or else mktime(3) can hang.
Modified Paths:
--------------
trunk/lib/libc/stdtime/Makefile.inc
Modified: trunk/lib/libc/stdtime/Makefile.inc
===================================================================
--- trunk/lib/libc/stdtime/Makefile.inc 2016-09-30 01:45:31 UTC (rev 9008)
+++ trunk/lib/libc/stdtime/Makefile.inc 2016-09-30 01:47:09 UTC (rev 9009)
@@ -11,6 +11,9 @@
CFLAGS+= -I${.CURDIR}/../../contrib/tzcode/stdtime -I${.CURDIR}/stdtime
+CFLAGS.localtime.c= -fwrapv
+CFLAGS+= ${CFLAGS.${.IMPSRC:T}}
+
MAN+= ctime.3 strftime.3 strptime.3 time2posix.3
MAN+= tzfile.5
More information about the Midnightbsd-cvs
mailing list