Thread: pgsql: Fix bug in to_tsquery().
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(-)
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
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