Re: XLogInsert() of dangling pointer while logging replica identity

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: XLogInsert() of dangling pointer while logging replica identity
Дата
Msg-id 20190201013849.GB2179@paquier.xyz
обсуждение исходный текст
Ответ на XLogInsert() of dangling pointer while logging replica identity  (Stas Kelvich <s.kelvich@postgrespro.ru>)
Ответы Re: XLogInsert() of dangling pointer while logging replica identity  (Andres Freund <andres@anarazel.de>)
Список pgsql-hackers
On Thu, Jan 31, 2019 at 11:51:36PM +0300, Stas Kelvich wrote:
>   It seems that heapam.c:3082 calls XLogRegisterData() with an argument
> allocated on stack, but following call to XLogInsert() happens after
> end of context for that variable.
>   Issue spotted by clang's AddressSanitizer. Fix attached.

Oh, good catch.  Committed and back-patched down to 9.4.
--
Michael

Вложения

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

Предыдущее
От: David Rowley
Дата:
Сообщение: Re: Delay locking partitions during query execution
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: Don't wake up to check trigger file if none is configured