Re: Fix overflow in DecodeInterval
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Joseph Koshakow <koshy44@gmail.com>
Cc: Andres Freund <andres@anarazel.de>,
PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2022-04-02T19:10:18Z
Lists: pgsql-hackers
Joseph Koshakow <koshy44@gmail.com> writes: > I took a stab at this issue and the attached patch (which would be > applied on top of your v10 patch) seems to fix the issue. Feel > free to ignore it if you're already working on a fix. You really only need to flip val/fval in one place. More to the point, there's also the hh:mm:ss paths to deal with; see my v11. regards, tom lane
Commits
-
Fix portability issues in datetime parsing.
- 591e088dd5b3 15.0 landed
-
Fix overflow hazards in interval input and output conversions.
- e39f99046710 15.0 landed
-
Add a couple more tests for interval input decoding.
- 1b208ebaf14e 15.0 landed