pgsql: Fix bug in to_tsquery().

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix bug in to_tsquery().
Date: 2012-05-16 11:40:46
Message-ID: E1SUcb0-0008Kv-Oy@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix bug in to_tsquery().

We were using memcpy() to copy to a possibly overlapping memory region,
which is a no-no. Use memmove() instead.

Branch
------
REL8_4_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/6e088424e2d41c01324f4bb730fab8ff44b68b81

Modified Files
--------------
src/backend/tsearch/to_tsany.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Heikki Linnakangas 2012-05-16 11:41:48 Re: pgsql: Fix bug in to_tsquery().
Previous Message Tom Lane 2012-05-16 11:31:55 Re: pgsql: Fix bug in to_tsquery().