Обсуждение: pgsql: Use memmove() not memcpy() to slide some pointers down.

Поиск
Список
Период
Сортировка

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

От
Tom Lane
Дата:
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(-)