]> 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:29:19 +0000 (13:29 +0200)
commit8332fe76b559dd7d0a689ec66e96c359e67e1f3b
treea60f8afe86949f2cfc5f2383c07bfda69c0e98c0
parent886c4ebfa3d935ff031f668b845a7c2463fd9acd
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