pgsql: radixtree: Fix SIGSEGV at update of embeddable value to non-embe

Поиск
Список
Период
Сортировка
От Masahiko Sawada
Тема pgsql: radixtree: Fix SIGSEGV at update of embeddable value to non-embe
Дата
Msg-id E1rzyXh-003ozn-CB@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
radixtree: Fix SIGSEGV at update of embeddable value to non-embeddable.

Also, fix a memory leak when updating from non-embeddable to
embeddable. Both were unreachable without adding C code.

Reported-by: Noah Misch
Author: Noah Misch
Reviewed-by: Masahiko Sawada, John Naylor
Discussion: https://postgr.es/m/20240424210319.4c.nmisch%40google.com

Branch
------
master

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

Modified Files
--------------
src/include/lib/radixtree.h                        |   6 +-
.../test_tidstore/expected/test_tidstore.out       | 116 ++++++++++++++++++++-
.../modules/test_tidstore/sql/test_tidstore.sql    |  21 +++-
src/test/modules/test_tidstore/test_tidstore.c     |  15 +++
4 files changed, 148 insertions(+), 10 deletions(-)


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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: pgsql: doc: Add link to table
Следующее
От: Andres Freund
Дата:
Сообщение: pgsql: Avoid unnecessary "touch meson.build" in vpath builds