pgsql: Use memmove() not memcpy() to slide some pointers down.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Use memmove() not memcpy() to slide some pointers down.
Date: 2016-04-27 22:19:32
Message-ID: E1avXnw-00086V-SN@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Mikael Kjellström 2016-04-27 22:44:03 Re: Re: [COMMITTERS] pgsql: Modify the isolation tester so that multiple sessions can wait.
Previous Message Tom Lane 2016-04-27 22:15:07 Re: Re: [COMMITTERS] pgsql: Modify the isolation tester so that multiple sessions can wait.