]> granicus.if.org Git - postgresql/commit
Prevent integer overflow within the integer-datetimes version of
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 23 Jan 2008 21:26:13 +0000 (21:26 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 23 Jan 2008 21:26:13 +0000 (21:26 +0000)
commitb9ff7443e63f25f73d45b35afe65a85d98a57256
tree18445a20e8cdf05b406e6ccb9c8892e7660ce1b7
parent1570d0467af81e652e2e9f89ba6c8508cc118255
Prevent integer overflow within the integer-datetimes version of
TimestampTzPlusMilliseconds.  An integer argument of more than INT_MAX/1000
milliseconds (ie, about 35 minutes) would provoke a wrong result, resulting
in incorrect enforcement of statement_timestamp values larger than that.
Bug was introduced in my rewrite of 2006-06-20, which fixed some other
overflow risks, but missed this one :-(  Per report from Elein.
src/include/utils/timestamp.h