Re: pg_dump: Fix dangling pointer in EndCompressorZstd() - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: pg_dump: Fix dangling pointer in EndCompressorZstd()
Date
Msg-id aAAvYUxZW7wibC66@paquier.xyz
Whole thread Raw
In response to Re: pg_dump: Fix dangling pointer in EndCompressorZstd()  (Daniel Gustafsson <daniel@yesql.se>)
Responses Re: pg_dump: Fix dangling pointer in EndCompressorZstd()
List pgsql-hackers
On Wed, Apr 16, 2025 at 04:19:02PM +0200, Daniel Gustafsson wrote:
> Agreed, while it's perfectly safe today the end method should not make
> assumptions about the use of the private_data pointer upon return and should
> leave it set to NULL.

Indeed.  I was just looking at applying what Alexander has sent
because what EndCompressorZstd() not doing what the other methods do
makes no sense.  Perhaps you are already on it, Daniel?
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: Rename injection point names in test_aio
Next
From: David Rowley
Date:
Subject: Re: Align memory context level numbering in pg_log_backend_memory_contexts()