- Notifications
You must be signed in to change notification settings - Fork5
Commitb9ff744
committed
Prevent integer overflow within the integer-datetimes version of
TimestampTzPlusMilliseconds. An integer argument of more than INT_MAX/1000milliseconds (ie, about 35 minutes) would provoke a wrong result, resultingin incorrect enforcement of statement_timestamp values larger than that.Bug was introduced in my rewrite of 2006-06-20, which fixed some otheroverflow risks, but missed this one :-( Per report from Elein.1 parent1570d04 commitb9ff744
1 file changed
+2
-2
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6 | 6 |
| |
7 | 7 |
| |
8 | 8 |
| |
9 |
| - | |
| 9 | + | |
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
| |||
182 | 182 |
| |
183 | 183 |
| |
184 | 184 |
| |
185 |
| - | |
| 185 | + | |
186 | 186 |
| |
187 | 187 |
| |
188 | 188 |
| |
|
0 commit comments
Comments
(0)