]> git.ipfire.org Git - thirdparty/postgresql.git/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:29:47 +0000 (13:29 +0200)
commitc7a186e392d4654148a45eaf8ffbf026553ecbdb
treef450a3f0ee7c1386ba8903b48bd636025cb1a1ca
parentff2e0e1f96ae412d06d0d10551161ca027d897fd
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