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-15 16:35:42
Message-ID: E1SUKis-00005k-8V@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_3_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/57615562504a3a10784d10a5205ed4bab41dba6e

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 Peter Eisentraut 2012-05-15 18:40:06 pgsql: Remove stray nbsp character
Previous Message Tom Lane 2012-05-15 03:51:48 pgsql: In pgstat.c, use a timeout in WaitLatchOrSocket only on Windows.