Re: Likely undefined behavior with some flexible arrays

From: Andrey Borodin <x4mmm(at)yandex-team(dot)ru>
To: Andres Freund <andres(at)anarazel(dot)de>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Likely undefined behavior with some flexible arrays
Date: 2026-01-22 06:09:37
Message-ID: BEB2A79B-D503-44DE-B907-FD4BC6A74747@yandex-team.ru
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> On 22 Jan 2026, at 06:56, Andres Freund <andres(at)anarazel(dot)de> wrote:
>
> It'd be nice to teach
> the compile that palloc allocates, to a) get compiler warnings for things like
> use-after-free b) warnings for things like access-beyond-allocation.

Is there any chance to teach a compiler about short lived memory contexts?

Best regards, Andrey Borodin.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Smith 2026-01-22 06:14:54 Re: DOCS - "\d mytable" also shows any publications that publish mytable
Previous Message jian he 2026-01-22 06:08:27 Re: CREATE TABLE LIKE INCLUDING TRIGGERS