Re: oauth integer overflow

From: Daniel Gustafsson <daniel(at)yesql(dot)se>
To: Andres Freund <andres(at)anarazel(dot)de>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>, Jacob Champion <champion(dot)p(at)gmail(dot)com>
Subject: Re: oauth integer overflow
Date: 2026-04-23 17:28:43
Message-ID: B2FCB6A7-10C4-416D-BA22-240E9FCDCE18@yesql.se
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> On 23 Apr 2026, at 18:12, Andres Freund <andres(at)anarazel(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Jacob Champion 2026-04-23 17:49:42 Re: oauth integer overflow
Previous Message Alexey Makhmutov 2026-04-23 17:00:18 [Patch][Bug] Incorrect usage of PageGetFreeSpace instead of PageGetHeapFreeSpace in heap_xlog_visible