bin/102121: strftime(3) fails on certain dates
Jukka A. Ukkonen
jau at jau.iki.fi
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
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Tue Aug 15 22:10:13 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Jukka A. Ukkonen
>Release: FreeBSD 6.1-STABLE i386
>Organization:
Private person
>Environment:
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
>Description:
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.
>How-To-Repeat:
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
or
Tue Aug 15 22:48:40 EET 2006
when DST is not used.
>Fix:
None known yet.
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list