Re: pg_control is missing a field for LOBLKSIZE

Поиск
Список
Период
Сортировка
От Stephen Frost
Тема Re: pg_control is missing a field for LOBLKSIZE
Дата
Msg-id 20140604175719.GK2556@tamriel.snowman.net
обсуждение исходный текст
Ответ на Re: pg_control is missing a field for LOBLKSIZE  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: pg_control is missing a field for LOBLKSIZE
Список pgsql-hackers
* Tom Lane (tgl@sss.pgh.pa.us) wrote:
> There are at least two places in inv_api.c where we have
> "Assert(pagelen <= LOBLKSIZE)" that is protecting a subsequent memcpy
> into a local variable of size LOBLKSIZE, so that the only thing standing
> between us and a stack-smash security issue that's trivially exploitable
> in production builds is that on-disk data conforms to our expectation
> about LOBLKSIZE.  I think it's definitely worth promoting these checks
> to regular runtime-if-test-and-elog.

Agreed.  Promoting that to a run-time check seems well worth it to me.
Thanks,
    Stephen

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: pg_control is missing a field for LOBLKSIZE
Следующее
От: Robert Haas
Дата:
Сообщение: Re: Proposing pg_hibernate