pgsql: Avoid memcpy() with same source and destination address. - Mailing list pgsql-committers

From Heikki Linnakangas
Subject pgsql: Avoid memcpy() with same source and destination address.
Date
Msg-id E1WLtIb-0000mU-AA@gemulon.postgresql.org
Whole thread Raw
List 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
------
master

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

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


pgsql-committers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: pgsql: Fix dangling smgr_owner pointer when a fake relcache entry is fr
Next
From: Heikki Linnakangas
Date:
Subject: pgsql: Fix dangling smgr_owner pointer when a fake relcache entry is fr