Re: [BUGFIX] Fix crash due to sizeof bug in RegisterExtensionExplainOption - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: [BUGFIX] Fix crash due to sizeof bug in RegisterExtensionExplainOption
Date
Msg-id aaZf11ZWsHALb1Ea@paquier.xyz
Whole thread Raw
In response to Re: [BUGFIX] Fix crash due to sizeof bug in RegisterExtensionExplainOption  (Andreas Karlsson <andreas@proxel.se>)
Responses Re: [BUGFIX] Fix crash due to sizeof bug in RegisterExtensionExplainOption
List pgsql-hackers
On Tue, Mar 03, 2026 at 04:39:43AM +0100, Andreas Karlsson wrote:
> Shouldn't the patch have used repalloc_array()? If the code had done so in
> the first place the bug would never have happened.

I was considering that first.  However, after looked at the
MemoryContextAlloc() and the inconsistency that repalloc_array() was
bringing, I have turned the thought away.
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Boris Mironov
Date:
Subject: Re: Idea to enhance pgbench by more modes to generate data (multi-TXNs, UNNEST, COPY BINARY)
Next
From: Andreas Karlsson
Date:
Subject: Re: [BUGFIX] Fix crash due to sizeof bug in RegisterExtensionExplainOption