Fix uninitialized variable access (src/backend/utils/mmgr/freepage.c)

Поиск
Список
Период
Сортировка
От Ranier Vilela
Тема Fix uninitialized variable access (src/backend/utils/mmgr/freepage.c)
Дата
Msg-id CAEudQApiF6K4Vy0=0RYfz0Qy+=irGzne1YTnTiWE4XG3Joxuvw@mail.gmail.com
обсуждение исходный текст
Ответы Re: Fix uninitialized variable access (src/backend/utils/mmgr/freepage.c)
Список pgsql-hackers
Hi,

The function FreePageManagerPutInternal can access an uninitialized variable,
if the following conditions occur:

1. fpm->btree_depth != 0
2. relptr_off == 0 inside function (FreePageBtreeSearch)

Perhaps this is a rare situation, but I think it's worth preventing.

/* Search the btree. */
FreePageBtreeSearch(fpm, first_page, &result);
Assert(!result.found);
if (result.index > 0)   /* result.index is garbage or invalid here) */

regards,
Ranier Vilela
Вложения

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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: make world and install-world without docs
Следующее
От: Dean Rasheed
Дата:
Сообщение: Re: rand48 replacement