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:45
Message-ID: [email protected]
Views: Whole Thread | Raw Message | 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
------
REL9_3_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/8332fe76b559dd7d0a689ec66e96c359e67e1f3b

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 Heikki Linnakangas 2014-03-07 11:50:46 pgsql: Avoid memcpy() with same source and destination address.
Previous Message Heikki Linnakangas 2014-03-07 08:45:48 pgsql: Fix name of syslog_ident GUC in docs.