Re: [BUGFIX] Fix crash due to sizeof bug in RegisterExtensionExplainOption

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: [BUGFIX] Fix crash due to sizeof bug in RegisterExtensionExplainOption
Дата
Msg-id aaZf11ZWsHALb1Ea@paquier.xyz
обсуждение исходный текст
Ответ на Re: [BUGFIX] Fix crash due to sizeof bug in RegisterExtensionExplainOption  (Andreas Karlsson <andreas@proxel.se>)
Ответы Re: [BUGFIX] Fix crash due to sizeof bug in RegisterExtensionExplainOption
Список 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

Вложения

В списке pgsql-hackers по дате отправления: