Add an upper limit to IS_VALID_JULIAN() to defend against overflow in
Tom Lane <tgl@sss.pgh.pa.us>
Add an upper limit to IS_VALID_JULIAN() to defend against overflow in date2j(). This ensures we give reasonable errors instead of bizarre behavior for input dates far in the future.
Files
| Path | Change | +/− |
|---|---|---|
| src/include/utils/datetime.h | modified | +10 −6 |
| src/interfaces/ecpg/pgtypeslib/dt.h | modified | +9 −5 |