Fix overflow in justify_interval related functions
Joseph Koshakow <koshy44@gmail.com>
From: Joseph Koshakow <koshy44@gmail.com>
To: pgsql-hackers@lists.postgresql.org
Date: 2022-02-13T18:28:38Z
Lists: pgsql-hackers
Attachments
- 0001-Check-for-overflow-in-justify_interval-functions.patch (text/x-patch) patch 0001
I mentioned this issue briefly in another thread, but the justify_interval, justify_days, and justify_hours functions all have the potential to overflow. The attached patch fixes this issue. Cheers, Joe Koshakow
Commits
-
Handle integer overflow in interval justification functions.
- 54bd1e43ca56 15.0 landed