This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Timezone POSIX compliance bug.


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]