Re: oauth integer overflow

Jacob Champion <jacob.champion@enterprisedb.com>

From: Jacob Champion <jacob.champion@enterprisedb.com>
To: Daniel Gustafsson <daniel@yesql.se>
Cc: Andres Freund <andres@anarazel.de>, PostgreSQL Hackers <pgsql-hackers@postgresql.org>, Jacob Champion <champion.p@gmail.com>
Date: 2026-04-23T17:49:42Z
Lists: pgsql-hackers
On Thu, Apr 23, 2026 at 10:29 AM Daniel Gustafsson <daniel@yesql.se> wrote:
> > On 23 Apr 2026, at 18:12, Andres Freund <andres@anarazel.de> wrote:
> > I think this should use pg_add_s32_overflow().

Agreed, thanks for the report!

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

Cool. I have one written up and can share it for comparison, if you'd
like, but it's fairly verbose and I wonder if there's a better way to
do it.

--Jacob