Fix use-after-free issue in slot synchronization.
authorAmit Kapila <akapila@postgresql.org>
Wed, 3 Sep 2025 06:31:05 +0000 (06:31 +0000)
committerAmit Kapila <akapila@postgresql.org>
Wed, 3 Sep 2025 06:31:05 +0000 (06:31 +0000)
commitf2dbc83501d441a98f7799863e1b6f18af8e8fbe
tree6783cf020da449b16a5bccba4f4753dbccc400a1
parentdb9405493b489c6a348c97f532753290eea8adbd
Fix use-after-free issue in slot synchronization.

Author: Shlok Kyal <shlok.kyal.oss@gmail.com>
Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
Reviewed-by: Amit Kapila <amit.kapila16@gmail.com>
Backpatch-through: 18, where it was introduced
Discussion: https://postgr.es/m/CANhcyEXMrcEdzj-RNGJam0nJHM4y+ttdWsgUCFmXciM7BNKc7A@mail.gmail.com
src/backend/replication/logical/slotsync.c
src/backend/replication/slotfuncs.c