Thread: Re: [Bug] Heap Use After Free in Window Aggregate Execution

Re: [Bug] Heap Use After Free in Window Aggregate Execution

From
Alvaro Herrera
Date:
Hello,

Adding David Rowley in CC.

On 2024-Nov-13, Jayesh Dehankar wrote:

> We have discovered a bug in PostgreSQL v16.3 related to a top-level
> window aggregate with a partition-by clause. The issue occurs when the
> run condition fails, causing the window aggregate status to change
> from WINDOWAGG_RUN to WINDOWAGG_PASSTHROUGH_STRICT mode. The bug is
> present in the latest STABLE branch.

David, what do you think about this?  The code in question was added by
your commits 9d9c02ccd1ae and a8583272218a, so I think you're the one
best prepared to handle this.

Thanks,

-- 
Álvaro Herrera               48°01'N 7°57'E  —  https://www.EnterpriseDB.com/



Re: [Bug] Heap Use After Free in Window Aggregate Execution

From
David Rowley
Date:
On Fri, 6 Dec 2024 at 06:08, Alvaro Herrera <alvherre@alvh.no-ip.org> wrote:
> David, what do you think about this?  The code in question was added by
> your commits 9d9c02ccd1ae and a8583272218a, so I think you're the one
> best prepared to handle this.

Thanks for alerting me to this. I missed the original report.

I will look.

David