Add range checks to time_recv() and timetz_recv(), to prevent binary input

Tom Lane <tgl@sss.pgh.pa.us>

Commit: dd96d13a77fcb7a95ecc6e74b36677fb1f1a69b8
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2009-05-26T01:29:09Z
Releases: 8.4.0
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.

Files

PathChange+/−
src/backend/utils/adt/date.c modified +29 −1