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

From: Masahiko Sawada <msawada(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: radixtree: Fix SIGSEGV at update of embeddable value to non-embe
Date: 2024-04-25 12:49:37
Message-ID: E1rzyXh-003ozn-CB@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Andres Freund 2024-04-25 14:55:02 pgsql: Avoid unnecessary "touch meson.build" in vpath builds
Previous Message Peter Eisentraut 2024-04-25 12:48:02 pgsql: doc: Add link to table