Add range checks to time_recv() and timetz_recv(), to prevent binary input
Tom Lane <tgl@sss.pgh.pa.us>
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
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/adt/date.c | modified | +29 −1 |