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:32
Message-ID: 20080609193432.08C3775602C@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_0_STABLE

Modified Files:
--------------
pgsql/src/backend/utils/adt:
datetime.c (r1.137.4.5 -> r1.137.4.6)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/datetime.c?r1=1.137.4.5&r2=1.137.4.6)

Browse pgsql-committers by date

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