pgsql: Avoid memcpy() with same source and destination in pgstat_recv_r - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Avoid memcpy() with same source and destination in pgstat_recv_r
Date
Msg-id E1kr2fH-0001v4-4y@gemulon.postgresql.org
Whole thread Raw
List 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(-)


pgsql-committers by date:

Previous
From: Alexander Korotkov
Date:
Subject: Re: pgsql: Multirange datatypes
Next
From: Tom Lane
Date:
Subject: pgsql: Doc: improve description of pgbench script weights.