Thread: pgsql: Fix crash of to_tsvector() function on huge input: compareWORD()

pgsql: Fix crash of to_tsvector() function on huge input: compareWORD()

From
teodor@postgresql.org (Teodor Sigaev)
Date:
Log Message:
-----------
Fix crash of to_tsvector() function on huge input: compareWORD()
function didn't return correct result for word position greate than
limit.

Per report from Stuart Bishop <stuart@stuartbishop.net>

Tags:
----
REL8_0_STABLE

Modified Files:
--------------
    pgsql/contrib/tsearch2:
        tsvector.c (r1.12.4.1 -> r1.12.4.2)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/contrib/tsearch2/tsvector.c?r1=1.12.4.1&r2=1.12.4.2)