Re: [Bug] Heap Use After Free in Window Aggregate Execution - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: [Bug] Heap Use After Free in Window Aggregate Execution
Date
Msg-id 202412051708.s36od6xck3jm@alvherre.pgsql
Whole thread Raw
Responses Re: [Bug] Heap Use After Free in Window Aggregate Execution
List pgsql-hackers
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/



pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: attndims, typndims still not enforced, but make the value within a sane threshold
Next
From: Tom Lane
Date:
Subject: Re: Potential null pointer dereference in postgres.c