This is the mail archive of the
glibc-bugs@sources.redhat.com
mailing list for the glibc project.
[Bug libc/471] mktime problem when tm_year == INT_MAX and tm_mon > 12
- From: "cvs-commit at gcc dot gnu dot org" <sourceware-bugzilla at sources dot redhat dot com>
- To: glibc-bugs at sources dot redhat dot com
- Date: 22 Oct 2004 22:24:07 -0000
- Subject: [Bug libc/471] mktime problem when tm_year == INT_MAX and tm_mon > 12
- References: <20041022202616.471.eggert@gnu.org>
- Reply-to: sourceware-bugzilla at sources dot redhat dot com
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-10-22 22:24 -------
Subject: Bug 471
CVSROOT: /cvs/glibc
Module name: libc
Changes by: roland@sources.redhat.com 2004-10-22 22:24:04
Modified files:
time : mktime.c
Log message:
2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
[BZ #471] Fix imported from gnulib.
* time/mktime.c (leapyear, ydms_tm_diff): Year is of type
long int, not int, to avoid problems when tm_year == INT_MAX
and tm_mon > 12.
(__mktime_intenral): Compute year using long int arithmetic,
not int arithmetic, to avoid problems on hosts where time_t
and long are 64 bits but int is 32.
Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/time/mktime.c.diff?cvsroot=glibc&r1=1.59&r2=1.60
--
http://sources.redhat.com/bugzilla/show_bug.cgi?id=471
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.