From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#18176: 24.4.50; Errors on dates far in the future in url.el Date: Sun, 03 Aug 2014 08:50:35 -0700 Organization: UCLA Computer Science Department Message-ID: <53DE5A4B.5070803@cs.ucla.edu> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1407081092 7598 80.91.229.3 (3 Aug 2014 15:51:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 3 Aug 2014 15:51:32 +0000 (UTC) To: 18176-done@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Aug 03 17:51:22 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XDy49-0004Cy-Lu for geb-bug-gnu-emacs@m.gmane.org; Sun, 03 Aug 2014 17:51:21 +0200 Original-Received: from localhost ([::1]:48379 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XDy49-0006pE-8X for geb-bug-gnu-emacs@m.gmane.org; Sun, 03 Aug 2014 11:51:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57961) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XDy3y-0006n7-Ho for bug-gnu-emacs@gnu.org; Sun, 03 Aug 2014 11:51:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XDy3r-0000bw-1k for bug-gnu-emacs@gnu.org; Sun, 03 Aug 2014 11:51:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49177) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XDy3q-0000br-UK for bug-gnu-emacs@gnu.org; Sun, 03 Aug 2014 11:51:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XDy3q-00009e-IR for bug-gnu-emacs@gnu.org; Sun, 03 Aug 2014 11:51:02 -0400 In-Reply-To: Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sun, 03 Aug 2014 15:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 18176 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 18176@debbugs.gnu.org, eggert@cs.ucla.edu, larsi@gnus.org Original-Received: via spool by 18176-done@debbugs.gnu.org id=D18176.1407081050570 (code D ref 18176); Sun, 03 Aug 2014 15:51:02 +0000 Original-Received: (at 18176-done) by debbugs.gnu.org; 3 Aug 2014 15:50:50 +0000 Original-Received: from localhost ([127.0.0.1]:56118 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XDy3e-000096-1f for submit@debbugs.gnu.org; Sun, 03 Aug 2014 11:50:50 -0400 Original-Received: from smtp.cs.ucla.edu ([131.179.128.62]:58917) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XDy3b-00008t-WC for 18176-done@debbugs.gnu.org; Sun, 03 Aug 2014 11:50:48 -0400 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 5D502A60001 for <18176-done@debbugs.gnu.org>; Sun, 3 Aug 2014 08:50:41 -0700 (PDT) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Original-Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cEYNXPfe1mdr for <18176-done@debbugs.gnu.org>; Sun, 3 Aug 2014 08:50:36 -0700 (PDT) Original-Received: from [192.168.1.9] (pool-108-0-233-62.lsanca.fios.verizon.net [108.0.233.62]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 7DCCFA60004 for <18176-done@debbugs.gnu.org>; Sun, 3 Aug 2014 08:50:36 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:92078 Archived-At: 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.