]> granicus.if.org Git - postgresql/commit
Avoid memcpy() with same source and destination address.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Fri, 7 Mar 2014 11:13:33 +0000 (13:13 +0200)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Fri, 7 Mar 2014 11:14:33 +0000 (13:14 +0200)
commitad7b48ea08d6c33bae0a33c5f2a06272293c0f2f
tree4983169d22f00d8bae6b6f8f0880cd93b4913fb6
parent2b8483d69d1be9700abae0dc7c48c5b7edb77498
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.
src/backend/tsearch/dict_ispell.c
src/backend/utils/adt/tsvector.c