Re: Fix overflow in DecodeInterval
Joseph Koshakow <koshy44@gmail.com>
From: Joseph Koshakow <koshy44@gmail.com>
To: Andres Freund <andres@anarazel.de>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, pgsql-hackers@lists.postgresql.org
Date: 2022-02-20T00:16:54Z
Lists: pgsql-hackers
Attachments
- v7-0001-Check-for-overflow-when-decoding-an-interval.patch (text/x-patch) patch v7-0001
Attached is a patch of my first pass. The to_char method isn't finished and I need to add a bunch of tests, but everything else is in place. It ended up being a fairly large change in case anyone wants to take a look the changes so far. One thing I noticed is that interval.c has a ton of code copied and pasted from other files. The code seemed out of date from those other files, so I tried to bring it up to date and add my changes. - Joe Koshakow
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