diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2008-01-23 21:26:20 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2008-01-23 21:26:20 +0000 |
commit | 4443afe59545a56fbf91ef260951fc2517cf8be6 (patch) | |
tree | 889f9cd25cd2b1cf0bc8a3501d5ac944bdb87723 /src/backend/commands/explain.c | |
parent | 95ad82793d39c253a285d920fd15227b106679db (diff) | |
download | postgresql-4443afe59545a56fbf91ef260951fc2517cf8be6.tar.gz postgresql-4443afe59545a56fbf91ef260951fc2517cf8be6.zip |
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.
Diffstat (limited to 'src/backend/commands/explain.c')
0 files changed, 0 insertions, 0 deletions