]> granicus.if.org Git - postgresql/commit
Use memmove() not memcpy() to slide some pointers down.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 27 Apr 2016 22:19:28 +0000 (18:19 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 27 Apr 2016 22:19:28 +0000 (18:19 -0400)
commitad520ec4acb8f0cdb143b63519be95a9549fa826
treef43c85e4954ff49b306294faec63dac035512107
parent4c804fbdfb472cf71db33609258b8e1aaad81943
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
src/test/isolation/isolationtester.c