Re: BUG #18200: Undefined behaviour in interval_div - Mailing list pgsql-bugs

From Dean Rasheed
Subject Re: BUG #18200: Undefined behaviour in interval_div
Date
Msg-id CAEZATCV+OHuoRFRLvgE4pWOvB2HmkFsrFRrD15DXRoYkWmq=aQ@mail.gmail.com
Whole thread Raw
In response to Re: BUG #18200: Undefined behaviour in interval_div  (Dean Rasheed <dean.a.rasheed@gmail.com>)
List pgsql-bugs
On Wed, 15 Nov 2023 at 22:41, Dean Rasheed <dean.a.rasheed@gmail.com> wrote:
>
> On Wed, 15 Nov 2023 at 18:14, Dean Rasheed <dean.a.rasheed@gmail.com> wrote:
> >
> > looking at
> > interval_mul(), there is nothing to prevent integer overflow when
> > cascading down, so additional checks are needed there too (in both
> > functions).
>
> Here's a patch doing that. I'm inclined to back-patch this
>

Pushed and back-patched.

Regards,
Dean



pgsql-bugs by date:

Previous
From: PG Bug reporting form
Date:
Subject: BUG #18203: Logical Replication initial sync failure
Next
From: PG Bug reporting form
Date:
Subject: BUG #18205: Performance regression with NOT NULL checks.