Add an upper limit to IS_VALID_JULIAN() to defend against overflow in

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

Commit: 157e17e20d75ddcc83eb839822d85f806cf3d2a3
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2003-07-17T22:28:42Z
Releases: 7.4.1
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

PathChange+/−
src/include/utils/datetime.h modified +10 −6
src/interfaces/ecpg/pgtypeslib/dt.h modified +9 −5