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: E1WLtIb-0000mo-Rn@gemulon.postgresql.org
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_1_STABLE

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

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.