OSDN Git Service

Add range checks to time_recv() and timetz_recv(), to prevent binary input
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 26 May 2009 01:29:09 +0000 (01:29 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 26 May 2009 01:29:09 +0000 (01:29 +0000)
commitdd96d13a77fcb7a95ecc6e74b36677fb1f1a69b8
tree17748c5e18a7ba2c4d9d074dc9987d3d5de05fcc
parentc3707a4fcd0df0fb436d458a0e293215823e138c
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.
src/backend/utils/adt/date.c