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:09
Message-ID: 20080609193409.7F98975602C@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_3_STABLE

Modified Files:
--------------
pgsql/src/backend/utils/adt:
datetime.c (r1.184.2.1 -> r1.184.2.2)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/datetime.c?r1=1.184.2.1&r2=1.184.2.2)

Browse pgsql-committers by date

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