Re: Likely undefined behavior with some flexible arrays - Mailing list pgsql-hackers

From Andrey Borodin
Subject Re: Likely undefined behavior with some flexible arrays
Date
Msg-id BEB2A79B-D503-44DE-B907-FD4BC6A74747@yandex-team.ru
Whole thread Raw
In response to Re: Likely undefined behavior with some flexible arrays  (Andres Freund <andres@anarazel.de>)
Responses Re: Likely undefined behavior with some flexible arrays
List pgsql-hackers

> On 22 Jan 2026, at 06:56, Andres Freund <andres@anarazel.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.


pgsql-hackers by date:

Previous
From: jian he
Date:
Subject: Re: CREATE TABLE LIKE INCLUDING TRIGGERS
Next
From: Peter Smith
Date:
Subject: Re: DOCS - "\d mytable" also shows any publications that publish mytable