pgsql: Avoid memcpy() with same source and destination address.

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Avoid memcpy() with same source and destination address.
Date: 2014-03-07 11:50:46
Message-ID: E1WLtIc-0000nC-7N@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Avoid memcpy() with same source and destination address.

The behavior of that is undefined, although unlikely to lead to problems in
practice.

Found by running regression tests with Valgrind.

Branch
------
REL8_4_STABLE

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

Modified Files
--------------
src/backend/tsearch/dict_ispell.c | 9 ++++-----
src/backend/utils/adt/tsvector.c | 3 ++-
2 files changed, 6 insertions(+), 6 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Bruce Momjian 2014-03-07 16:42:24 pgsql: fix ReplicationSlotsCountDBSlots for dropping unrelated database
Previous Message Heikki Linnakangas 2014-03-07 11:50:45 pgsql: Fix dangling smgr_owner pointer when a fake relcache entry is fr