Fix use-after-free issue in slot synchronization.
authorAmit Kapila <[email protected]>
Wed, 3 Sep 2025 06:17:08 +0000 (06:17 +0000)
committerAmit Kapila <[email protected]>
Wed, 3 Sep 2025 06:17:08 +0000 (06:17 +0000)
commit8df3d355db0fcb56535644c5ea2f4ae6f7dfacdf
treeb2cd71c83c9b8270efcde6ab5a4808c5ff1dc0c3
parentae53537e218a112676483e50358718d142bcfeb9
Fix use-after-free issue in slot synchronization.

Author: Shlok Kyal <[email protected]>
Reviewed-by: Daniel Gustafsson <[email protected]>
Reviewed-by: Amit Kapila <[email protected]>
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