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

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема pgsql: Avoid memcpy() with same source and destination address.
Дата
Msg-id E1WLtIc-0000n2-3h@gemulon.postgresql.org
обсуждение исходный текст
Список 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_0_STABLE

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

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 по дате отправления:

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: pgsql: Avoid memcpy() with same source and destination address.
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: pgsql: Fix dangling smgr_owner pointer when a fake relcache entry is fr