pgsql: Avoid memcpy() with same source and destination in pgstat_recv_r

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Avoid memcpy() with same source and destination in pgstat_recv_r
Date: 2020-12-20 17:38:39
Message-ID: E1kr2fH-0001v4-4y@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Avoid memcpy() with same source and destination in pgstat_recv_replslot.

Same type of issue as in commit 53d4f5fef and earlier fixes; also
found by apparently-more-picky-than-the-buildfarm valgrind testing.
This one is an oversight in commit 986816750. Since that's new in
HEAD, no need for a back-patch.

Branch
------
master

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

Modified Files
--------------
src/backend/postmaster/pgstat.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2020-12-20 18:37:46 pgsql: Doc: improve description of pgbench script weights.
Previous Message Alexander Korotkov 2020-12-20 14:56:49 Re: pgsql: Multirange datatypes