This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: Timezone POSIX compliance bug.
- From: Paul Eggert <eggert at CS dot UCLA dot EDU>
- To: Roland McGrath <roland at redhat dot com>
- Cc: libc-alpha at sources dot redhat dot com, 89098 at bugs dot debian dot org
- Date: 24 Dec 2003 00:13:24 -0800
- Subject: Re: Timezone POSIX compliance bug.
- References: <200312232311.hBNNBr55003239@magilla.sf.frob.com>
Roland McGrath <roland@redhat.com> writes:
> Off hand I cannot see why we clip the given values at all.
I'd guess that a reasonable amount of glibc code will break if the UTC
offset is enormous (e.g., on the order of 2**31 seconds). Also, I
wouldn't be surprised if some of the time-zone-adjusting code (e.g.,
tzset, mktime) assumes relatively-sane UTC offsets, on the order of
days rather than years.
I suspect that these assumptions won't dump core if violated
(i.e., you'll get unspecified results, not undefined behavior)
but it'd take a reasonable amount of work to verify this suspicion.