pgsql: Fix dangling pointer problem in ReorderBufferSerializeChange.

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix dangling pointer problem in ReorderBufferSerializeChange.
Date: 2016-09-28 15:27:34
Message-ID: E1bpGli-0008Go-BR@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix dangling pointer problem in ReorderBufferSerializeChange.

Commit 3fe3511d05127cc024b221040db2eeb352e7d716 introduced a new
case into this function, but neglected to ensure that the "ondisk"
pointer got updated after a possible reallocation as the code does
in other cases.

Stas Kelvich, per diagnosis by Konstantin Knizhnik.

Branch
------
REL9_6_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/32841fa325de298e0bad771c588354fd59866e42

Modified Files
--------------
src/backend/replication/logical/reorderbuffer.c | 3 +++
1 file changed, 3 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2016-09-28 16:37:59 pgsql: Fix CRC check handling in get_controlfile
Previous Message Heikki Linnakangas 2016-09-28 09:25:37 pgsql: Turn password_encryption GUC into an enum.