pgsql: Fix off-by-one Asserts in FreePageBtreeInsertInternal/Leaf.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Fix off-by-one Asserts in FreePageBtreeInsertInternal/Leaf.
Дата
Msg-id E1vByFa-003988-2y@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Fix off-by-one Asserts in FreePageBtreeInsertInternal/Leaf.

These two functions expect there to be room to insert another item
in the FreePageBtree's array, but their assertions were too weak
to guarantee that.  This has little practical effect granting that
the callers are not buggy, but it seems to be misleading late-model
Coverity into complaining about possible array overrun.

Author: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/799984.1761150474@sss.pgh.pa.us
Backpatch-through: 13

Branch
------
REL_16_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/a8838689594d95a3c6342cb86b2be8a3add2d4d1

Modified Files
--------------
src/backend/utils/mmgr/freepage.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)


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