Re: oauth integer overflow
Daniel Gustafsson <daniel@yesql.se>
From: Daniel Gustafsson <daniel@yesql.se>
To: Andres Freund <andres@anarazel.de>
Cc: PostgreSQL Hackers <pgsql-hackers@postgresql.org>,
Jacob Champion <champion.p@gmail.com>
Date: 2026-04-23T17:28:43Z
Lists: 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