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_1_STABLE

Modified Files:
--------------
    pgsql/contrib/tsearch2:
        tsvector.c (r1.15.2.5 -> r1.15.2.6)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/contrib/tsearch2/tsvector.c?r1=1.15.2.5&r2=1.15.2.6)