pgsql: Fix datetime input functions to correctly detect integer overflow

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix datetime input functions to correctly detect integer overflow
Date: 2008-06-09 19:34:03
Message-ID: 20080609193403.08D3975602C@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Fix datetime input functions to correctly detect integer overflow when
running on a 64-bit platform ... strtol() will happily return 64-bit
output in that case. Per bug #4231 from Geoff Tolley.

Modified Files:
--------------
pgsql/src/backend/utils/adt:
datetime.c (r1.189 -> r1.190)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/datetime.c?r1=1.189&r2=1.190)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2008-06-09 19:34:09 pgsql: Fix datetime input functions to correctly detect integer overflow
Previous Message Neil Conway 2008-06-09 18:32:23 Re: pgsql: Fix typo in comment.