pgsql: Fix bug in to_tsquery().

Started by Heikki Linnakangasabout 14 years ago3 messagescomitters
Jump to latest
#1Heikki Linnakangas
heikki.linnakangas@enterprisedb.com

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
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/d2495f272cd164ff075bee5c4ce95aed11338a36

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

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Heikki Linnakangas (#1)
Re: pgsql: Fix bug in to_tsquery().

Heikki Linnakangas <heikki.linnakangas@iki.fi> writes:

Fix bug in to_tsquery().

Good catch, but you seem to have missed the 8.4 branch here?

regards, tom lane

#3Heikki Linnakangas
heikki.linnakangas@enterprisedb.com
In reply to: Tom Lane (#2)
Re: pgsql: Fix bug in to_tsquery().

On 16.05.2012 14:31, Tom Lane wrote:

Heikki Linnakangas<heikki.linnakangas@iki.fi> writes:

Fix bug in to_tsquery().

Good catch, but you seem to have missed the 8.4 branch here?

Oh, good catch! Committed there too, now.

--
Heikki Linnakangas
EnterpriseDB http://www.enterprisedb.com