bin/102121: strftime(3) fails on certain dates

Jukka A. Ukkonen jau at
Tue Aug 15 22:10:23 UTC 2006

>Number:         102121
>Category:       bin
>Synopsis:       strftime(3) fails on certain dates
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug 15 22:10:13 GMT 2006
>Originator:     Jukka A. Ukkonen
>Release:        FreeBSD 6.1-STABLE i386
Private person
System: FreeBSD mjolnir 6.1-STABLE FreeBSD 6.1-STABLE #0: Mon Aug 14 11:21:54 EET DST 2006 root at mjolnir:/usr/obj/usr/src/sys/Mjolnir i386

	Several programs using system default ctime(3)/strftime(3)
	functions produce erroneous text conversion of binary dates.

	This is very harmful, because the formatted dates might be
	used in log files etc. totally breaking any reliable timeline
	in the logs.

	Try for e.g.

	/bin/date -r 1597464920

	If libc contains the failing strftime() version, you will see...

	Sat Aug 15 07:00:00 EET DST 2020

	The correct date should be ...

	Tue Aug 15 23:48:40 EET DST 2006


	Tue Aug 15 22:48:40 EET 2006

	when DST is not used.

	None known yet.


More information about the freebsd-bugs mailing list