Re: [HACKERS] Fix freeing of dangling IndexScanDesc.xs_hitup in GiST

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [HACKERS] Fix freeing of dangling IndexScanDesc.xs_hitup in GiST
Дата
Msg-id 25148.1493925400@sss.pgh.pa.us
обсуждение исходный текст
Ответ на [HACKERS] Fix freeing of dangling IndexScanDesc.xs_hitup in GiST  (Nikita Glukhov <n.gluhov@postgrespro.ru>)
Ответы Re: [HACKERS] Fix freeing of dangling IndexScanDesc.xs_hitup in GiST  (Nikita Glukhov <n.gluhov@postgrespro.ru>)
Список pgsql-hackers
Nikita Glukhov <n.gluhov@postgrespro.ru> writes:
> In gistrescan() IndexScanDesc.xs_hitup is not reset after MemoryContextReset() of
> so->queueCxt in which xs_hitup was allocated, then getNextNearest() tries to pfree()
> dangling xs_hitup, which results in the reuse of this pointer and the subsequent crash.

Right.  I already did something about this, about an hour ago --- a
bit differently from your patch, but same idea.
        regards, tom lane



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] json_agg produces nonstandard json
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] Potential issue with alter system