Fix overflow in justify_interval related functions

From: Joseph Koshakow <koshy44(at)gmail(dot)com>
To: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Fix overflow in justify_interval related functions
Date: 2022-02-13 18:28:38
Message-ID: CAAvxfHeNqsJ2xYFbPUf_8nNQUiJqkag04NW6aBQQ0dbZsxfWHA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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

Attachment Content-Type Size
0001-Check-for-overflow-in-justify_interval-functions.patch text/x-patch 4.5 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2022-02-13 18:59:12 xml_is_well_formed (was Re: buildfarm warnings)
Previous Message Chapman Flack 2022-02-13 17:32:20 Re: Mark all GUC variable as PGDLLIMPORT