Re: oauth integer overflow - Mailing list pgsql-hackers

From Daniel Gustafsson
Subject Re: oauth integer overflow
Date
Msg-id B2FCB6A7-10C4-416D-BA22-240E9FCDCE18@yesql.se
Whole thread
In response to oauth integer overflow  (Andres Freund <andres@anarazel.de>)
Responses Re: oauth integer overflow
List pgsql-hackers
> On 23 Apr 2026, at 18:12, Andres Freund <andres@anarazel.de> wrote:

> I don't think it's safe to rely on that type of check working without -fwrapv
> support, which in turn we can't rely on having.
>
> I think this should use pg_add_s32_overflow().

Agreed, I'll write up a patch to fix it.

--
Daniel Gustafsson




pgsql-hackers by date:

Previous
From: Alexey Makhmutov
Date:
Subject: [Patch][Bug] Incorrect usage of PageGetFreeSpace instead of PageGetHeapFreeSpace in heap_xlog_visible
Next
From: Jacob Champion
Date:
Subject: Re: oauth integer overflow