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:25
Message-ID: 20080609193425.2002F75602C@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.

Tags:
----
REL8_1_STABLE

Modified Files:
--------------
pgsql/src/backend/utils/adt:
datetime.c (r1.160.2.5 -> r1.160.2.6)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/datetime.c?r1=1.160.2.5&r2=1.160.2.6)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2008-06-09 19:34:32 pgsql: Fix datetime input functions to correctly detect integer overflow
Previous Message Tom Lane 2008-06-09 19:34:17 pgsql: Fix datetime input functions to correctly detect integer overflow