pgsql: Use memmove() not memcpy() to slide some pointers down. - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Use memmove() not memcpy() to slide some pointers down.
Date
Msg-id E1avXnw-00086V-SN@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Use memmove() not memcpy() to slide some pointers down.

The previous coding here was formally undefined, though it seems to
accidentally work on most platforms in the buildfarm.  Caught by some
OpenBSD platforms in which libc contains an assertion check for
overlapping areas passed to memcpy().

Thomas Munro

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/ad520ec4acb8f0cdb143b63519be95a9549fa826

Modified Files
--------------
src/test/isolation/isolationtester.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Clean up parsing of synchronous_standby_names GUC variable.
Next
From: Bruce Momjian
Date:
Subject: pgsql: pg_upgrade: Fix indentation of if() block