Protect against possible memory corruption (src/backend/access/nbtree/nbtxlog.c)

Поиск
Список
Период
Сортировка
От Ranier Vilela
Тема Protect against possible memory corruption (src/backend/access/nbtree/nbtxlog.c)
Дата
Msg-id CAEudQAoWq+AL3BnELHu7gms2GN07k-np6yLbukGaxJ1vY-zeiQ@mail.gmail.com
обсуждение исходный текст
Ответы Re: Protect against possible memory corruption (src/backend/access/nbtree/nbtxlog.c)
Список pgsql-hackers
Hi,

While analyzing a possible use of an uninitialized variable, I checked that *_bt_restore_page* can lead to memory corruption,
by not checking the maximum limit of array items which is MaxIndexTuplesPerPage.

It can also generate a dangling pointer by incrementing it beyond the limits it can point to.

While there, I promoted a reduction of scope and adaptation of the type of the *len* parameter to match XLogRecGetBlockData function.

pass regress check at Windows and check-world at Linux.

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

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

Предыдущее
От: "Euler Taveira"
Дата:
Сообщение: Re: row filtering for logical replication
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: Re: Protect against possible memory corruption (src/backend/access/nbtree/nbtxlog.c)