GNU bug report logs -
#18176
24.4.50; Errors on dates far in the future in url.el
Previous Next
Reported by: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
Date: Sat, 2 Aug 2014 23:20:02 UTC
Severity: normal
Found in version 24.4.50
Done: Paul Eggert <eggert <at> cs.ucla.edu>
Bug is archived. No further changes may be made.
Full log
Message #16 received at 18176-done <at> debbugs.gnu.org (full text, mbox):
That "4038" started out as a "2038" (the year 32-bit signed time_t's
will roll around) and then someone added 2000 seemingly at random. We
might as well bump it to most-positive-fixnum.
However, this won't work on hosts with 32-bit time_t, because the
low-level primitives can't go past 2038. (Even on 64-bit hosts it won't
work for time stamps in the very far future.) So url-cookie-expired-p
needs to take greater care here.
Fixing this uncovered a couple of other problems. First, date-to-time
shouldn't fall back on timezone-make-date-arpa-standard if encode-time
says the date is out of range. Second, the low-level primitives don't
consistently call time_overflow when there's a time overflow.
This particular use case suggests that url-cookie-expired-p should treat
out-of-range expiration dates as being infinite.
I installed a patch to do all the above, as trunk bzr 117637. I suppose
we could get fancier by distinguishing negative from positive time
overflow, and/or by creating error symbols for time overflow flavors,
but this patch should be enough to fix the current bug.
This bug report was last modified 10 years and 294 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.