pgsql: Add range checks to time_recv() and timetz_recv(), to prevent

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Add range checks to time_recv() and timetz_recv(), to prevent
Date: 2009-05-26 01:29:09
Message-ID: 20090526012909.4B39F75331E@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Add range checks to time_recv() and timetz_recv(), to prevent binary input
of time values that would not be accepted via textual input.
Per gripe from Andrew McNamara.

This is potentially a back-patchable bug fix, but for the moment it doesn't
seem sufficiently high impact to justify doing that.

Modified Files:
--------------
pgsql/src/backend/utils/adt:
date.c (r1.144 -> r1.145)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/date.c?r1=1.144&r2=1.145)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2009-05-26 01:39:49 pgsql: Remove unused declarations of EncodeTimeOnly and DecodeTimeOnly.
Previous Message User Bmomjian 2009-05-26 01:21:55 pg-migrator - pg_migrator: Create v8_3_tsvector data type for use in